nixpkgs-suyu/pkgs/development/tools/fq/default.nix
2022-02-12 21:02:35 -08:00

35 lines
673 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, fq
, testVersion
}:
buildGoModule rec {
pname = "fq";
version = "0.0.4";
src = fetchFromGitHub {
owner = "wader";
repo = "fq";
rev = "v${version}";
sha256 = "sha256-mnb/9zcFSeBasGPYSGWoBhnldljGW3VK070zTO8M/uk=";
};
vendorSha256 = "sha256-KPIO/ZuiwxlnjGLaEuClkDsJnx/fwW0jPDBc7aTT68A=";
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 ];
};
}