depot/third_party/nixpkgs/pkgs/development/tools/fq/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

37 lines
703 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, fq
, testers
}:
buildGoModule rec {
pname = "fq";
version = "0.2.0";
src = fetchFromGitHub {
owner = "wader";
repo = "fq";
rev = "v${version}";
sha256 = "sha256-OAdKt5RgLVoTmccN50TUwUAU7VLiTU9hEnDAKxKBRzI=";
};
vendorSha256 = "sha256-Y9wfeAX0jt3KrpRa5kJi8V8WN/hp4jTcPCbvy0RDGRk=";
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 ];
};
}