diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-10-17 21:00:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-10-17 21:00:00 -0500 |
commit | a988883d91cdb9aaa361d08253dcda032685860a (patch) | |
tree | 9f57e70a3541798e1efac43547f49a8e05ada3e9 /pkgs/applications/virtualization/dumb-init | |
parent | 5617886b16ccf0b5e9bf6c7f93d79162cc14fad3 (diff) |
dumb-init: init at 1.2.2
Diffstat (limited to 'pkgs/applications/virtualization/dumb-init')
-rw-r--r-- | pkgs/applications/virtualization/dumb-init/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/dumb-init/default.nix b/pkgs/applications/virtualization/dumb-init/default.nix new file mode 100644 index 0000000000000..c7be90222c2eb --- /dev/null +++ b/pkgs/applications/virtualization/dumb-init/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, glibc }: + +stdenv.mkDerivation rec { + pname = "dumb-init"; + version = "1.2.2"; + + src = fetchFromGitHub { + owner = "Yelp"; + repo = pname; + rev = "v${version}"; + sha256 = "15hgl8rz5dmrl5gx21sq5269l1hq539qn68xghjx0bv9hgbx0g20"; + }; + + buildInputs = [ glibc.static ]; + + installPhase = '' + runHook preInstall + + install -Dm755 -t $out/bin dumb-init + + runHook postInstall + ''; + + meta = with stdenv.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; + }; +} |