daemon: switch to pname, version; cleanups

This commit is contained in:
Sandro Jäckel 2020-12-02 02:13:21 +01:00
parent 721d9ecfa9
commit 9752b47524
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,15 +1,18 @@
{stdenv, fetchurl, perl}:
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
pname = "daemon";
version = "0.7";
stdenv.mkDerivation {
name = "daemon-0.7";
src = fetchurl {
url = "http://libslack.org/daemon/download/daemon-0.7.tar.gz";
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
sha256 = "0b17zzl7bqnkn7a4pr3l6fxqfmxfld7izphrab5nvhc4wzng4spn";
};
makeFlags = [ "PREFIX=$(out)" ];
buildInputs = [ perl ];
meta = {
meta = with stdenv.lib; {
description = "Turns other processes into daemons";
longDescription = ''
Daemon turns other process into daemons. There are many tasks that need
@ -18,8 +21,8 @@ stdenv.mkDerivation {
writing daemons in languages other than C, C++ or Perl (e.g. /bin/sh,
Java).
'';
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = stdenv.lib.platforms.unix;
license = licenses.gpl2Plus;
maintainers = [ maintainers.sander ];
platforms = platforms.unix;
};
}