depot/pkgs/by-name/qs/qsreplace/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

30 lines
718 B
Nix

{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "qsreplace";
version = "0.0.3";
src = fetchFromGitHub {
owner = "tomnomnom";
repo = "qsreplace";
rev = "v${version}";
hash = "sha256-j9bqO2gp4RUxZHGBCIxI5nA3nD1dG4nCpJ1i4TM/fbo=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/tomnomnom/qsreplace";
description = "Accept URLs on stdin, replace all query string values with a user-supplied value";
mainProgram = "qsreplace";
maintainers = with maintainers; [ averagebit ];
platforms = platforms.unix;
sourceProvenance = with sourceTypes; [ fromSource ];
license = licenses.mit;
};
}