nixpkgs-suyu/pkgs/tools/system/daemon/default.nix

33 lines
921 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
pname = "daemon";
2021-02-23 21:31:18 +01:00
version = "0.7.1";
2019-09-22 21:18:54 +02:00
src = fetchurl {
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
2021-02-23 21:31:18 +01:00
sha256 = "sha256-uh9tyHUyyFK/uPQ2F5zWYcNFj/iY9ndnxBQSMZhibf0=";
2019-09-22 21:18:54 +02:00
};
makeFlags = [
"PREFIX=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
];
2019-09-22 21:18:54 +02:00
buildInputs = [ perl ];
meta = with lib; {
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).
'';
license = licenses.gpl2Plus;
maintainers = [ maintainers.sander ];
platforms = platforms.unix;
2019-09-22 21:18:54 +02:00
};
}