nixpkgs/pkgs/development/tools/fq/default.nix
2021-12-23 11:29:49 +01:00

36 lines
679 B
Nix

{ lib
, buildGo117Module
, fetchFromGitHub
, fq
, testVersion
}:
buildGo117Module rec {
pname = "fq";
version = "0.0.2";
src = fetchFromGitHub {
owner = "wader";
repo = "fq";
rev = "v${version}";
sha256 = "sha256-ykjt9MPkN5dgTaY2VhApNt5DKh9TFapMpoHwLdpOKcw=";
};
vendorSha256 = "sha256-89rSpxhP35wreo+0AqM+rDICCPchF+yFVvrTtZ2Xwr4=";
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 ];
};
}