2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2020-12-02 02:13:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "daemon";
|
2021-03-08 09:47:10 +01:00
|
|
|
version = "0.8";
|
2019-09-22 21:18:54 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-02 02:13:21 +01:00
|
|
|
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
|
2021-03-08 09:47:10 +01:00
|
|
|
sha256 = "sha256-dPEubUs8hWMkib0IQx09mXvBcmS/V7cgI4Ty6AnP9ZY=";
|
2019-09-22 21:18:54 +02:00
|
|
|
};
|
2020-12-02 02:13:21 +01:00
|
|
|
|
2020-12-20 17:49:21 +01:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
|
|
|
|
2019-09-22 21:18:54 +02:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-26 05:08:40 +01:00
|
|
|
description = "Turns other processes into daemons";
|
2019-09-22 21:18:54 +02:00
|
|
|
longDescription = ''
|
|
|
|
Daemon turns other process into daemons. There are many tasks that need
|
|
|
|
to be performed to correctly set up a daemon process. This can be tedious.
|
|
|
|
Daemon performs these tasks for other processes. This is useful for
|
|
|
|
writing daemons in languages other than C, C++ or Perl (e.g. /bin/sh,
|
|
|
|
Java).
|
|
|
|
'';
|
2020-12-02 02:13:21 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.sander ];
|
|
|
|
platforms = platforms.unix;
|
2019-09-22 21:18:54 +02:00
|
|
|
};
|
|
|
|
}
|