diff options
author | Kevin Cox <kevincox@kevincox.ca> | 2016-04-13 20:32:52 -0400 |
---|---|---|
committer | obadz <dav-github@odav.org> | 2016-04-14 01:32:52 +0100 |
commit | 08a035725f47b69d82c72f8c1ea48d04c53390fa (patch) | |
tree | 4ef1e4da3558c53d4bd3388ffa861b575c2efb7b /pkgs/tools/admin/daemontools | |
parent | 6f3e72eef6332ae988d213c76f77db65e8897e62 (diff) | |
download | nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.tar nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.tar.gz nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.tar.bz2 nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.tar.lz nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.tar.xz nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.tar.zst nixpkgs-08a035725f47b69d82c72f8c1ea48d04c53390fa.zip |
daemontools: init at 0.76 (#14675)
Diffstat (limited to 'pkgs/tools/admin/daemontools')
-rw-r--r-- | pkgs/tools/admin/daemontools/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/admin/daemontools/default.nix b/pkgs/tools/admin/daemontools/default.nix new file mode 100644 index 00000000000..08f21dc6262 --- /dev/null +++ b/pkgs/tools/admin/daemontools/default.nix @@ -0,0 +1,42 @@ +{ fetchurl, bash, glibc, stdenv }: + +stdenv.mkDerivation rec { + name = "daemontools-0.76"; + + src = fetchurl { + url = "https://cr.yp.to/daemontools/${name}.tar.gz"; + sha256 = "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"; + }; + + configurePhase = '' + cd ${name} + + sed -ie '1 s_$_ -include ${glibc}/include/errno.h_' src/conf-cc + + substituteInPlace src/Makefile \ + --replace '/bin/sh' '${bash}/bin/bash -oxtrace' + + sed -ie "s_^PATH=.*_PATH=$src/${name}/compile:''${PATH}_" src/rts.tests + + cat ${glibc}/include/errno.h + ''; + + buildPhase = '' + package/compile + ''; + + installPhase = '' + for cmd in $(cat package/commands); do + install -Dm755 "command/$cmd" "$out/bin/$cmd" + done + ''; + + meta = { + license = stdenv.lib.licenses.publicDomain; + homepage = https://cr.yp.to/daemontools.html; + description = "A collection of tools for managing UNIX services."; + + maintainers = with stdenv.lib.maintainers; [ kevincox ]; + platforms = stdenv.lib.platforms.unix; + }; +} |