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
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2021-12-24 04:21:11 +00:00
|
|
|
}:
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2021-12-24 04:21:11 +00:00
|
|
|
pname = "fq";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.8.0";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wader";
|
|
|
|
repo = "fq";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-7q08fQUFy4qX3VqUHuvOZuVQdFeoeo5+7HUQ4WWMWYw=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-7TGdbGVx7YTuYBmHYK0dqccxSTkLzUlBk21EREv9XBA=";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests = testers.testVersion { package = fq; };
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "jq for binary formats";
|
|
|
|
homepage = "https://github.com/wader/fq";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|