qsreplace: use buildGoModule

This commit is contained in:
Aaron Jheng 2024-02-06 23:08:55 +08:00
parent 5a072b4a9d
commit 5a3c3d30d9
No known key found for this signature in database
GPG key ID: F6A547A869D050A3

View file

@ -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";