From 5a3c3d30d990bccc09c35323f607c1a22270ad3c Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Tue, 6 Feb 2024 23:08:55 +0800 Subject: [PATCH] qsreplace: use buildGoModule --- pkgs/by-name/qs/qsreplace/package.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/qs/qsreplace/package.nix b/pkgs/by-name/qs/qsreplace/package.nix index a12c27e26ec5..6949374e212f 100644 --- a/pkgs/by-name/qs/qsreplace/package.nix +++ b/pkgs/by-name/qs/qsreplace/package.nix @@ -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";