2021-12-24 04:21:11 +00:00
|
|
|
{ lib
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildGoModule
|
2021-12-24 04:21:11 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fq
|
|
|
|
, testVersion
|
|
|
|
}:
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2021-12-24 04:21:11 +00:00
|
|
|
pname = "fq";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.0.4";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wader";
|
|
|
|
repo = "fq";
|
|
|
|
rev = "v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-mnb/9zcFSeBasGPYSGWoBhnldljGW3VK070zTO8M/uk=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
vendorSha256 = "sha256-KPIO/ZuiwxlnjGLaEuClkDsJnx/fwW0jPDBc7aTT68A=";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = testVersion { package = fq; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "jq for binary formats";
|
|
|
|
homepage = "https://github.com/wader/fq";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|