mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
daemontools: init at 0.76 (#14675)
This commit is contained in:
parent
6f3e72eef6
commit
08a035725f
42
pkgs/tools/admin/daemontools/default.nix
Normal file
42
pkgs/tools/admin/daemontools/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -696,6 +696,8 @@ in
|
||||
cpulimit = callPackage ../tools/misc/cpulimit { };
|
||||
|
||||
contacts = callPackage ../tools/misc/contacts { };
|
||||
|
||||
daemontools = callPackage ../tools/admin/daemontools { };
|
||||
|
||||
datamash = callPackage ../tools/misc/datamash { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user