2022-04-27 09:35:20 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "curlie";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.6.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "rs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
patches = [
|
|
|
|
./bump-golang-x-sys.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-VsPdMUfS4UVem6uJgFISfFHQEKtIumDQktHQFPC1muc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-04-15 01:41:22 +00:00
|
|
|
package = curlie;
|
|
|
|
command = "curlie version";
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Frontend to curl that adds the ease of use of httpie, without compromising on features and performance";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://curlie.io/";
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|