nixpkgs/pkgs/tools/networking/curlie/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
778 B
Nix
Raw Normal View History

2022-04-05 04:13:58 +03:00
{ buildGoModule, fetchFromGitHub, lib, curlie, testVersion }:
2019-08-18 06:52:19 +03:00
buildGoModule rec {
pname = "curlie";
2022-04-05 03:59:29 +03:00
version = "1.6.9";
2019-08-18 06:52:19 +03:00
2022-04-05 03:59:29 +03:00
src = fetchFromGitHub {
2019-08-18 06:52:19 +03:00
owner = "rs";
repo = pname;
rev = "v${version}";
2022-04-05 03:59:29 +03:00
hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
2019-08-18 06:52:19 +03:00
};
vendorSha256 = "sha256-tYZtnD7RUurhl8yccXlTIvOxybBJITM+it1ollYJ1OI=";
2019-08-18 06:52:19 +03:00
2022-04-05 04:13:58 +03:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests.version = testVersion {
package = curlie;
command = "curlie version";
};
2019-08-18 06:52:19 +03:00
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/";
2019-08-18 06:52:19 +03:00
maintainers = with maintainers; [ ma27 ];
license = licenses.mit;
};
}