2022-04-20 15:40:48 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:
|
2019-08-18 04:52:19 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "curlie";
|
2022-04-05 01:59:29 +01:00
|
|
|
version = "1.6.9";
|
2019-08-18 04:52:19 +01:00
|
|
|
|
2022-04-05 01:59:29 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-08-18 04:52:19 +01:00
|
|
|
owner = "rs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-05 01:59:29 +01:00
|
|
|
hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
|
2019-08-18 04:52:19 +01:00
|
|
|
};
|
|
|
|
|
2022-09-28 19:04:04 +01:00
|
|
|
patches = [
|
|
|
|
./bump-golang-x-sys.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-VsPdMUfS4UVem6uJgFISfFHQEKtIumDQktHQFPC1muc=";
|
2019-08-18 04:52:19 +01:00
|
|
|
|
2022-04-05 02:13:58 +01:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
|
2022-04-20 15:40:48 +01:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-04-05 02:13:58 +01:00
|
|
|
package = curlie;
|
|
|
|
command = "curlie version";
|
|
|
|
};
|
|
|
|
|
2019-08-18 04:52:19 +01:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Frontend to curl that adds the ease of use of httpie, without compromising on features and performance";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://curlie.io/";
|
2019-08-18 04:52:19 +01:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|