mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
34 lines
830 B
Nix
34 lines
830 B
Nix
{ buildGoModule, fetchFromGitHub, lib, curlie, testers }:
|
|
|
|
buildGoModule rec {
|
|
pname = "curlie";
|
|
version = "1.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-EHSFr05VXJuOjUnweEJngdnfSUZUF1HsO28ZBSLGlvE=";
|
|
};
|
|
|
|
patches = [
|
|
./bump-golang-x-sys.patch
|
|
];
|
|
|
|
vendorHash = "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;
|
|
};
|
|
}
|