pkgs/tools: stdenv.lib -> lib
This commit is contained in:
@@ -23,15 +23,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
buildInputs = stdenv.lib.optionals static [ stdenv.cc.libc stdenv.cc.libc.static ] ++
|
||||
stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.libs.utmp;
|
||||
buildInputs = lib.optionals static [ stdenv.cc.libc stdenv.cc.libc.static ] ++
|
||||
lib.optional stdenv.isDarwin darwin.apple_sdk.libs.utmp;
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s,\(#define RUNIT\) .*,\1 \"$out/bin/runit\"," src/runit.h
|
||||
# usernamespace sandbox of nix seems to conflict with runit's assumptions
|
||||
# about unix users. Therefor skip the check
|
||||
sed -i '/.\/chkshsgr/d' src/Makefile
|
||||
'' + stdenv.lib.optionalString (!static) ''
|
||||
'' + lib.optionalString (!static) ''
|
||||
sed -i 's,-static,,g' src/Makefile
|
||||
'';
|
||||
|
||||
@@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Both of these are originally hard-coded to gcc
|
||||
echo ${stdenv.cc.targetPrefix}cc > conf-cc
|
||||
echo ${stdenv.cc.targetPrefix}cc ${stdenv.lib.optionalString stdenv.isDarwin "-Xlinker -x "}> conf-ld
|
||||
echo ${stdenv.cc.targetPrefix}cc ${lib.optionalString stdenv.isDarwin "-Xlinker -x "}> conf-ld
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user