37 lines
700 B
Nix
37 lines
700 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, fq
|
|
, testers
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "fq";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wader";
|
|
repo = "fq";
|
|
rev = "v${version}";
|
|
hash = "sha256-7Zprw1UgKEE8pEbmvR6LcT6Ng9oMRVDCy4HkgDNNYcU=";
|
|
};
|
|
|
|
vendorHash = "sha256-DodVm3Ga7+PD5ZORjVJcPruP8brT/aCGxCRlw3gVsJo=";
|
|
|
|
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 ];
|
|
};
|
|
}
|