qsreplace: use buildGoModule
This commit is contained in:
parent
5a072b4a9d
commit
5a3c3d30d9
1 changed files with 6 additions and 4 deletions
|
@ -1,14 +1,12 @@
|
|||
{ 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";
|
||||
|
|
Loading…
Reference in a new issue