2021-12-23 10:29:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildGo117Module
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fq
|
|
|
|
, testVersion
|
|
|
|
}:
|
2021-12-23 08:39:11 +00:00
|
|
|
|
|
|
|
buildGo117Module rec {
|
|
|
|
pname = "fq";
|
2022-01-11 06:12:03 +00:00
|
|
|
version = "0.0.3";
|
2021-12-23 08:39:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wader";
|
|
|
|
repo = "fq";
|
|
|
|
rev = "v${version}";
|
2022-01-11 06:12:03 +00:00
|
|
|
sha256 = "sha256-yC2Hd7sUPA7SCJNWYlD1u3u9kfTEtkFwdUrNeYoi5xU=";
|
2021-12-23 08:39:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-89rSpxhP35wreo+0AqM+rDICCPchF+yFVvrTtZ2Xwr4=";
|
|
|
|
|
2021-12-23 10:29:49 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = testVersion { package = fq; };
|
|
|
|
|
2021-12-23 08:39:11 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "jq for binary formats";
|
|
|
|
homepage = "https://github.com/wader/fq";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|