Unverified Commit ae02bd80 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #286755 from aaronjheng/qsreplace

qsreplace: use buildGoModule
parents df704e99 5a3c3d30
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, buildGoPackage
, buildGoModule
}:

buildGoPackage rec {
buildGoModule rec {
  pname = "qsreplace";
  version = "0.0.3";

  goPackagePath = "github.com/tomnomnom/qsreplace";

  src = fetchFromGitHub {
    owner = "tomnomnom";
    repo = "qsreplace";
@@ -16,6 +14,10 @@ buildGoPackage rec {
    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";