depot/third_party/nixpkgs/pkgs/by-name/qs/qsreplace/package.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01: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;
};
}