a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
37 lines
703 B
Nix
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 ];
|
|
};
|
|
}
|