nixpkgs/pkgs/applications/virtualization/dumb-init/default.nix

32 lines
676 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, glibc }:
2019-10-18 04:00:00 +02:00
stdenv.mkDerivation rec {
pname = "dumb-init";
2020-12-10 16:01:17 +01:00
version = "1.2.4";
2019-10-18 04:00:00 +02:00
src = fetchFromGitHub {
owner = "Yelp";
repo = pname;
rev = "v${version}";
2020-12-10 16:01:17 +01:00
sha256 = "0v6ggfjl3q5p4hf002ygs8rryyzrg0fqy836p403fq2fgm30k0xx";
2019-10-18 04:00:00 +02:00
};
buildInputs = [ glibc.static ];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin dumb-init
runHook postInstall
'';
meta = with lib; {
2019-10-18 04:00:00 +02:00
description = "A minimal init system for Linux containers";
homepage = "https://github.com/Yelp/dumb-init";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
platforms = platforms.linux;
};
}