depot/third_party/nixpkgs/pkgs/tools/networking/curlie/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

33 lines
832 B
Nix

{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:
buildGoModule rec {
pname = "curlie";
version = "1.6.9";
src = fetchFromGitHub {
owner = "rs";
repo = pname;
rev = "v${version}";
hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
};
patches = [
./bump-golang-x-sys.patch
];
vendorSha256 = "sha256-VsPdMUfS4UVem6uJgFISfFHQEKtIumDQktHQFPC1muc=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests.version = testers.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;
};
}