ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
31 lines
675 B
Nix
31 lines
675 B
Nix
{ lib, stdenv, fetchFromGitHub, glibc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dumb-init";
|
|
version = "1.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Yelp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-aRh0xfmp+ToXIYjYaducTpZUHndZ5HlFZpFhzJ3yKgs=";
|
|
};
|
|
|
|
buildInputs = [ glibc.static ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 -t $out/bin dumb-init
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A minimal init system for Linux containers";
|
|
homepage = "https://github.com/Yelp/dumb-init";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|