bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
29 lines
778 B
Nix
29 lines
778 B
Nix
{ buildGoModule, fetchFromGitHub, lib, curlie, testVersion }:
|
|
|
|
buildGoModule rec {
|
|
pname = "curlie";
|
|
version = "1.6.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-tYZtnD7RUurhl8yccXlTIvOxybBJITM+it1ollYJ1OI=";
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
|
|
|
passthru.tests.version = testVersion {
|
|
package = curlie;
|
|
command = "curlie version";
|
|
};
|
|
|
|
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/";
|
|
maintainers = with maintainers; [ ma27 ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|