mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
fq: add testVersion
This commit is contained in:
parent
0bfec83a7e
commit
4ebb399c1e
@ -1,4 +1,9 @@
|
|||||||
{ lib, buildGo117Module, fetchFromGitHub }:
|
{ lib
|
||||||
|
, buildGo117Module
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fq
|
||||||
|
, testVersion
|
||||||
|
}:
|
||||||
|
|
||||||
buildGo117Module rec {
|
buildGo117Module rec {
|
||||||
pname = "fq";
|
pname = "fq";
|
||||||
@ -13,6 +18,14 @@ buildGo117Module rec {
|
|||||||
|
|
||||||
vendorSha256 = "sha256-89rSpxhP35wreo+0AqM+rDICCPchF+yFVvrTtZ2Xwr4=";
|
vendorSha256 = "sha256-89rSpxhP35wreo+0AqM+rDICCPchF+yFVvrTtZ2Xwr4=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X main.version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru.tests = testVersion { package = fq; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "jq for binary formats";
|
description = "jq for binary formats";
|
||||||
homepage = "https://github.com/wader/fq";
|
homepage = "https://github.com/wader/fq";
|
||||||
|
Loading…
Reference in New Issue
Block a user