depot/third_party/nixpkgs/pkgs/development/tools/fq/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

38 lines
724 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, fq
, testers
}:
buildGoModule rec {
pname = "fq";
version = "0.11.0";
src = fetchFromGitHub {
owner = "wader";
repo = "fq";
rev = "v${version}";
hash = "sha256-C9YvAHzpNwOVbFWxmdT5BUwsLug7k6ZLYboYJTgp82I=";
};
vendorHash = "sha256-liNRrmcTbN9mLWvgcEFZbgBPAHFGCF/KMV6KwRBWgoU=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
subPackages = [ "." ];
passthru.tests = testers.testVersion { package = fq; };
meta = with lib; {
description = "jq for binary formats";
mainProgram = "fq";
homepage = "https://github.com/wader/fq";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}