forked from mirrors/nixpkgs
curlie: set and test version
This commit is contained in:
parent
a440e3ec91
commit
b3af29aa16
|
@ -1,4 +1,4 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
{ buildGoModule, fetchFromGitHub, lib, curlie, testVersion }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "curlie";
|
||||
|
@ -15,6 +15,13 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
passthru.tests.version = testVersion {
|
||||
package = curlie;
|
||||
command = "curlie version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Frontend to curl that adds the ease of use of httpie, without compromising on features and performance";
|
||||
homepage = "https://curlie.io/";
|
||||
|
|
Loading…
Reference in a new issue