2022-04-20 14:40:48 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:
|
2019-08-18 03:52:19 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "curlie";
|
2023-10-24 10:28:44 +00:00
|
|
|
version = "1.7.2";
|
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-10-24 10:28:44 +00:00
|
|
|
hash = "sha256-YOsq3cB+Pn2eC1Dky3fobBRR7GMxcf/tvWr6i3Vq/BE=";
|
2019-08-18 03:52:19 +00:00
|
|
|
};
|
|
|
|
|
2022-09-28 18:04:04 +00:00
|
|
|
patches = [
|
|
|
|
./bump-golang-x-sys.patch
|
|
|
|
];
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "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}" ];
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
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; {
|
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 01:11:51 +00:00
|
|
|
homepage = "https://curlie.io/";
|
2019-08-18 03:52:19 +00:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
license = licenses.mit;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "curlie";
|
2019-08-18 03:52:19 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|