depot/third_party/nixpkgs/pkgs/development/tools/fq/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

37 lines
699 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, fq
, testers
}:
buildGoModule rec {
pname = "fq";
version = "0.6.0";
src = fetchFromGitHub {
owner = "wader";
repo = "fq";
rev = "v${version}";
hash = "sha256-j7s9oluNtYi6MmTKCendTIjc/zvynY6fWvXH47XkwOI=";
};
vendorHash = "sha256-XobOcG5s2ggTk3RmJPM14OWv45PMyKs0w0BOvozUobw=";
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 ];
};
}