Unverified Commit 5a3c3d30 authored by Aaron Jheng's avatar Aaron Jheng
Browse files

qsreplace: use buildGoModule

parent 5a072b4a
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";