summary refs log tree commit diff
path: root/pkgs/tools/system/undaemonize/default.nix
blob: 50ae366d10bd4f920b1ef21d113361d5b654b18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
  pname = "undaemonize";
  version = "unstable-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 = lib.licenses.mit;
    maintainers = [ lib.maintainers.canndrew ];
    platforms = lib.platforms.linux;
  };
}