Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

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";
};
})