depot/third_party/nixpkgs/pkgs/by-name/he/hermitcli/package.nix

35 lines
780 B
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
}:
buildGoModule rec {
pname = "hermit";
version = "0.41.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "cashapp";
repo = "hermit";
hash = "sha256-pHhGMVlBJAZ9pCv5IsayLw9g1LPIHLmvRczvDPgwj/A=";
};
vendorHash = "sha256-+phwbG2ODhzfzqOJ6IuT/XDzTevPrdOfJH6PKLKeJlM=";
subPackages = [ "cmd/hermit" ];
ldflags = [
"-X main.version=${version}"
"-X main.channel=stable"
];
meta = with lib; {
homepage = "https://cashapp.github.io/hermit";
description = "Manages isolated, self-bootstrapping sets of tools in software projects";
license = licenses.asl20;
maintainers = with maintainers; [ cbrewster ];
platforms = platforms.unix;
mainProgram = "hermit";
};
}