6b61249106
this shouldn't create any rebuilds
33 lines
770 B
Nix
33 lines
770 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "daemonize";
|
|
version = "1.7.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bmc";
|
|
repo = "daemonize";
|
|
rev = "release-${finalAttrs.version}";
|
|
sha256 = "1e6LZXf/lK7sB2CbXwOg7LOi0Q8IBQNAa4d7rX0Ej3A=";
|
|
};
|
|
|
|
patches = [
|
|
# conbination of:
|
|
# https://github.com/bmc/daemonize/commit/eaf4746d47e171e7b8655690eb1e91fc216f2866
|
|
# https://github.com/bmc/daemonize/pull/39
|
|
./include-write-prototype.patch
|
|
];
|
|
|
|
meta = {
|
|
description = "Runs a command as a Unix daemon";
|
|
homepage = "http://software.clapper.org/daemonize/";
|
|
license = lib.licenses.bsd3;
|
|
platforms = with lib.platforms; linux ++ freebsd ++ darwin;
|
|
mainProgram = "daemonize";
|
|
};
|
|
})
|