3
0
Fork 0
forked from mirrors/nixpkgs

curlie: set and test version

This commit is contained in:
Terje Larsen 2022-04-05 03:13:58 +02:00
parent a440e3ec91
commit b3af29aa16
No known key found for this signature in database
GPG key ID: A88B401A8DB3C7D6

View file

@ -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/";