depot/third_party/nixpkgs/pkgs/development/tools/fq/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

35 lines
679 B
Nix

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