4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
37 lines
703 B
Nix
37 lines
703 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, fq
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "fq";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wader";
|
|
repo = "fq";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tMlHhfPocm+n2aHG/XXbhElwPau8IHxEm6IrYaszcNQ=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-kfJfEvMHaPyDK9qkZVP07NByALxVwPcAKs9Kab6v4NE=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
passthru.tests = testers.testVersion { package = fq; };
|
|
|
|
meta = with lib; {
|
|
description = "jq for binary formats";
|
|
homepage = "https://github.com/wader/fq";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siraben ];
|
|
};
|
|
}
|