Merge pull request #151878 from 0x4A6F/master-fq

This commit is contained in:
Ben Siraphob 2021-12-23 18:03:55 +07:00 committed by GitHub
commit 56c2f8f1cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,9 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib
, buildGo117Module
, fetchFromGitHub
, fq
, testVersion
}:
buildGo117Module rec {
pname = "fq";
@ -13,6 +18,14 @@ buildGo117Module rec {
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";