2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl }:
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "daemon";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-03 08:41:04 +00:00
|
|
|
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-s0s3VDu6Q70Ibln0t1TIECOArlwXKLmHyJDV2ktM88o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-12-03 08:41:04 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Turns other processes into daemons";
|
2020-04-24 23:36:52 +00: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-03 08:41:04 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.sander ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|