nixpkgs/pkgs/development/tools/fq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
699 B
Nix
Raw Normal View History

2021-12-23 10:29:49 +00:00
{ lib
, buildGoModule
2021-12-23 10:29:49 +00:00
, fetchFromGitHub
, fq
, testers
2021-12-23 10:29:49 +00:00
}:
2021-12-23 08:39:11 +00:00
buildGoModule rec {
2021-12-23 08:39:11 +00:00
pname = "fq";
2023-11-26 15:21:15 +00:00
version = "0.9.0";
2021-12-23 08:39:11 +00:00
src = fetchFromGitHub {
owner = "wader";
repo = "fq";
rev = "v${version}";
2023-11-26 15:21:15 +00:00
hash = "sha256-ohSjQxVbywOcZHwDditqDyQ+EAgzWtLXRc130dpIzzE=";
2021-12-23 08:39:11 +00:00
};
2023-11-26 15:21:15 +00:00
vendorHash = "sha256-yfunwj+0fVrWV1RgZtCsdmV4ESKF7VLr12P2nULyqOg=";
2021-12-23 08:39:11 +00:00
2021-12-23 10:29:49 +00:00
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
2022-03-22 05:08:46 +00:00
subPackages = [ "." ];
passthru.tests = testers.testVersion { package = fq; };
2021-12-23 10:29:49 +00:00
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 ];
};
}