Merge remote-tracking branch 'upstream/master' into hardened-stdenv
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Fix broken .la files
|
||||
preFixup = ''
|
||||
sed 's,-lgpg-error,-L${libgpgerror}/lib -lgpg-error,' -i $out/lib/*.la
|
||||
sed 's,-lgpg-error,-L${libgpgerror.out}/lib -lgpg-error,' -i $out/lib/*.la
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchgit, xorg
|
||||
, autoconf, automake, cvs, libtool, nasm, pixman, xkeyboard_config
|
||||
, fontDirectories, libgcrypt, gnutls, pam, flex, bison, gettext
|
||||
, cmake, libjpeg_turbo, fltk
|
||||
, cmake, libjpeg_turbo, fltk, nettle, libiconv, libtasn1
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
@@ -69,12 +69,12 @@ stdenv.mkDerivation rec {
|
||||
buildInputs =
|
||||
[ xorg.libX11 xorg.libXext gettext xorg.libICE xorg.libXtst xorg.libXi xorg.libSM xorg.libXft
|
||||
nasm libgcrypt gnutls pam pixman libjpeg_turbo fltk xorg.xineramaproto
|
||||
xorg.libXinerama xorg.libXcursor
|
||||
xorg.libXinerama xorg.libXcursor nettle libiconv libtasn1
|
||||
];
|
||||
|
||||
nativeBuildInputs =
|
||||
[ autoconf automake cvs xorg.utilmacros xorg.fontutil libtool flex bison
|
||||
cmake
|
||||
cmake gettext
|
||||
]
|
||||
++ xorg.xorgserver.nativeBuildInputs;
|
||||
|
||||
@@ -91,4 +91,4 @@ stdenv.mkDerivation rec {
|
||||
# Prevent a store collision.
|
||||
priority = 4;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user