about summary refs log tree commit diff
path: root/pkgs/tools/system/undaemonize
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2017-07-12 21:23:40 +0800
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-07-12 14:23:40 +0100
commit07e7527fdb14769b6ecb39a787fa2c053895f9f0 (patch)
treec3e03d9512d6d32bbf6907d186e685dcf2d4bea6 /pkgs/tools/system/undaemonize
parent8f5f9864539df229554b25737f3f02dfd1e3db45 (diff)
undaemonize: init at 2017-07-11 (#27325)
Diffstat (limited to 'pkgs/tools/system/undaemonize')
-rw-r--r--pkgs/tools/system/undaemonize/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/system/undaemonize/default.nix b/pkgs/tools/system/undaemonize/default.nix
new file mode 100644
index 0000000000000..e82ee18b8314a
--- /dev/null
+++ b/pkgs/tools/system/undaemonize/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation {
+  name = "undaemonize-2017-07-11";
+  src = fetchFromGitHub {
+    repo = "undaemonize";
+    owner = "nickstenning";
+    rev = "a181cfd900851543ee1f85fe8f76bc8916b446d4";
+    sha256 = "1fkrgj3xfhj820qagh5p0rabl8z2hpad6yp984v92h9pgbfwxs33";
+  };
+  installPhase = ''
+    install -D undaemonize $out/bin/undaemonize
+  '';
+  meta = {
+    description = "Tiny helper utility to force programs which insist on daemonizing themselves to run in the foreground";
+    homepage = "https://github.com/nickstenning/undaemonize";
+    license = stdenv.lib.licenses.mit;
+    maintainers = [ stdenv.lib.maintainers.canndrew ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}
+