diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix index 583ba397487c..94572301dd29 100644 --- a/pkgs/applications/science/misc/root/default.nix +++ b/pkgs/applications/science/misc/root/default.nix @@ -12,8 +12,14 @@ stdenv.mkDerivation rec { buildInputs = [ cmake pkgconfig python libX11 libXpm libXft libXext zlib lzma ]; + preConfigure = '' + patchShebangs build/unix/ + ''; + cmakeFlags = [ "-Drpath=ON" + "-DCMAKE_INSTALL_LIBDIR=lib" + "-DCMAKE_INSTALL_INCLUDEDIR=include" ] ++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include";