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

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

34 lines
832 B
Nix
Raw Normal View History

{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:
2019-08-18 03:52:19 +00:00
buildGoModule rec {
pname = "curlie";
2023-06-01 03:25:39 +00:00
version = "1.7.1";
2019-08-18 03:52:19 +00:00
2022-04-05 00:59:29 +00:00
src = fetchFromGitHub {
2019-08-18 03:52:19 +00:00
owner = "rs";
repo = pname;
rev = "v${version}";
2023-06-01 03:25:39 +00:00
hash = "sha256-EHSFr05VXJuOjUnweEJngdnfSUZUF1HsO28ZBSLGlvE=";
2019-08-18 03:52:19 +00:00
};
2022-09-28 18:04:04 +00:00
patches = [
./bump-golang-x-sys.patch
];
vendorSha256 = "sha256-VsPdMUfS4UVem6uJgFISfFHQEKtIumDQktHQFPC1muc=";
2019-08-18 03:52:19 +00:00
2022-04-05 01:13:58 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests.version = testers.testVersion {
2022-04-05 01:13:58 +00:00
package = curlie;
command = "curlie version";
};
2019-08-18 03:52:19 +00: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 03:52:19 +00:00
maintainers = with maintainers; [ ma27 ];
license = licenses.mit;
};
}