nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation (finalAttrs: {
8 pname = "daemonize";
9 version = "1.7.8";
10
11 src = fetchFromGitHub {
12 owner = "bmc";
13 repo = "daemonize";
14 rev = "release-${finalAttrs.version}";
15 sha256 = "1e6LZXf/lK7sB2CbXwOg7LOi0Q8IBQNAa4d7rX0Ej3A=";
16 };
17
18 patches = [
19 # conbination of:
20 # https://github.com/bmc/daemonize/commit/eaf4746d47e171e7b8655690eb1e91fc216f2866
21 # https://github.com/bmc/daemonize/pull/39
22 ./include-write-prototype.patch
23 ];
24
25 meta = {
26 description = "Runs a command as a Unix daemon";
27 homepage = "http://software.clapper.org/daemonize/";
28 license = lib.licenses.bsd3;
29 platforms = with lib.platforms; linux ++ freebsd ++ darwin;
30 mainProgram = "daemonize";
31 };
32})