treewide: stdenv.lib -> lib
This commit is contained in:
@@ -5,7 +5,7 @@ doxygen, boost, openscenegraph, gnome2, xorg, git, bash, gtk2, makeWrapper }:
|
||||
|
||||
let
|
||||
|
||||
fakegit = import ./fakegit.nix {inherit stdenv fetchgit fetchsvn bash;} ;
|
||||
fakegit = import ./fakegit.nix { inherit lib stdenv fetchgit fetchsvn bash; };
|
||||
|
||||
in
|
||||
|
||||
@@ -38,7 +38,7 @@ stdenv.mkDerivation {
|
||||
for e in $(cd $out/bin && ls); do
|
||||
wrapProgram $out/bin/$e \
|
||||
--prefix PATH : "${gnumake}/bin" \
|
||||
--prefix LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ lapack blas ]}"
|
||||
--prefix LIBRARY_PATH : "${lib.makeLibraryPath [ lapack blas ]}"
|
||||
done
|
||||
'';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchgit, fetchsvn, bash } :
|
||||
{ lib, stdenv, fetchgit, fetchsvn, bash }:
|
||||
|
||||
let
|
||||
mkscript = path : text : ''
|
||||
@@ -11,9 +11,9 @@ let
|
||||
sed -i "s@%out@$out@g" ${path}
|
||||
chmod +x ${path}
|
||||
'';
|
||||
|
||||
|
||||
hashname = r: let
|
||||
rpl = stdenv.lib.replaceChars [":" "/"] ["_" "_"];
|
||||
rpl = lib.replaceChars [":" "/"] ["_" "_"];
|
||||
in
|
||||
(rpl r.url) + "-" + (rpl r.rev);
|
||||
|
||||
@@ -24,7 +24,7 @@ stdenv.mkDerivation {
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -pv $out/repos
|
||||
${stdenv.lib.concatMapStrings
|
||||
${lib.concatMapStrings
|
||||
(r : ''
|
||||
cp -r ${fetchgit r} $out/repos/${hashname r}
|
||||
''
|
||||
@@ -55,7 +55,7 @@ stdenv.mkDerivation {
|
||||
chmod u+w -R $DEST
|
||||
''}
|
||||
|
||||
${stdenv.lib.concatMapStrings
|
||||
${lib.concatMapStrings
|
||||
(r : ''
|
||||
cp -r ${fetchsvn r} $out/repos/${hashname r}
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user