x11: replace its usage by xlibsWrapper directly

Scilab note: the parameters already had pointed to nonexistent dirs
before this set of refactoring. But that config wasn't even used by
default.
This commit is contained in:
Vladimír Čunát
2015-09-15 12:08:24 +02:00
parent 47ad941fbf
commit 21e3ff658a
83 changed files with 183 additions and 187 deletions
@@ -8,7 +8,7 @@
, ocaml, withOCaml ? false
#, withJava ? false
#, atlasMath, withAtlas ? false
, x11, withX ? false
, xlibsWrapper, withX ? false
}:
stdenv.mkDerivation rec {
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
buildInputs = [gfortran ncurses]
++ lib.optionals withGtk [gtk]
++ lib.optionals withOCaml [ocaml]
++ lib.optionals withX [x11]
++ lib.optional withX xlibsWrapper
;
@@ -58,11 +58,7 @@ stdenv.mkDerivation rec {
# do not compile Java interface
+ " --without-java"
# use the X Window System
+ (lib.optionalString withX "
--with-x
--x-libraries=${x11}/lib
--x-includes=${x11}/include
")
+ lib.optionalString withX "--with-x"
;
makeFlags = "all";