mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
35 lines
776 B
Nix
35 lines
776 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "hermit";
|
|
version = "0.39.1";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "cashapp";
|
|
repo = "hermit";
|
|
hash = "sha256-ukg/KQTLG2F7mDNgoUr8GEKnkFHEJtVpwDs+DiLXvlM=";
|
|
};
|
|
|
|
vendorHash = "sha256-1QMZvxy6cCJVoIP8mG7s4V0nBAGhrHoPbiKKyYDDL2g=";
|
|
|
|
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";
|
|
};
|
|
}
|