3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/virtualization/dumb-init/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
675 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, glibc }:
2019-10-18 03:00:00 +01:00
stdenv.mkDerivation rec {
pname = "dumb-init";
2021-01-19 12:17:33 +00:00
version = "1.2.5";
2019-10-18 03:00:00 +01:00
src = fetchFromGitHub {
owner = "Yelp";
repo = pname;
rev = "v${version}";
2021-01-19 12:17:33 +00:00
sha256 = "sha256-aRh0xfmp+ToXIYjYaducTpZUHndZ5HlFZpFhzJ3yKgs=";
2019-10-18 03:00:00 +01:00
};
buildInputs = [ glibc.static ];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin dumb-init
runHook postInstall
'';
meta = with lib; {
2019-10-18 03:00:00 +01: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;
};
}