treewide: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-16 17:58:11 +07:00
parent a9bb54359e
commit badf51221d
977 changed files with 2613 additions and 2613 deletions
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
#
# gfortran: error: unrecognized command line option '-stdlib=libc++'
#
stdenv.lib.optionalString stdenv.isDarwin ''
lib.optionalString stdenv.isDarwin ''
substituteInPlace src/Makefile.in \
--replace "F77LD = \$(F77)" "F77LD = \$(CXXLD)" \
'';
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
buildInputs =
[ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum libtirpc ]
# pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
++ stdenv.lib.optional (!stdenv.isDarwin) libyaml
++ lib.optional (!stdenv.isDarwin) libyaml
;
propagatedBuildInputs = [ lynx ];