nixpkgs/pkgs/by-name/da/daemon/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

34 lines
949 B
Nix

{ lib, stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
pname = "daemon";
version = "0.8.4";
src = fetchurl {
url = "http://libslack.org/daemon/download/daemon-${version}.tar.gz";
sha256 = "sha256-+iiFmtNBywoLASwRwnGBT4cEggE7SfcQYAMh03mIfNE=";
};
makeFlags = [
"PREFIX=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
];
buildInputs = [ perl ];
meta = with lib; {
description = "Turns other processes into daemons";
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;
mainProgram = "daemon";
};
}