mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
94d2e57c62
before it didn't. Through this commit I expect the build farm to try to build kde, and see whether this way it builds without the unusual NIX_CFLAGS_COMPILE set in the qt setup-hook. svn path=/nixpkgs/trunk/; revision=15838
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ fetchurl, stdenv, cmake, qt4 }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "paraview-3.4.0";
|
|
src = fetchurl {
|
|
url = http://www.paraview.org/files/v3.4/paraview-3.4.0.tar.gz;
|
|
sha256 = "27544f442e957e9aa60b32c674f2dcd84fffeecc9a40071ef6e305333413187d";
|
|
};
|
|
|
|
patches = [ ./include-qobject.patch ];
|
|
|
|
# I added these flags to get all the rpaths right, which I guess they are
|
|
# taken from the qt4 sources. Not very nice.
|
|
cmakeFlags = "-DCMAKE_SHARED_LINKER_FLAGS=\"-Wl,-rpath,$out/lib/paraview-3.4\"" +
|
|
" -DCMAKE_EXE_LINKER_FLAGS=\"-Wl,-rpath,$out/lib/paraview-3.4" +
|
|
" -lpng12 -lSM -lICE -lXrender -lXrandr -lXcursor -lXinerama" +
|
|
" -lXfixes -lfreetype -lfontconfig -lXext -lX11 -lssl -lXt -lz\"" +
|
|
" -DCMAKE_SKIP_BUILD_RPATH=ON" +
|
|
" -DCMAKE_BUILD_TYPE=Release" +
|
|
" -DCMAKE_INSTALL_PREFIX=$out";
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
# I rewrote the configure phase to get the $out references evaluated in
|
|
# cmakeFlags
|
|
configurePhase = ''
|
|
set -x
|
|
mkdir -p build;
|
|
cd build
|
|
eval -- "cmake .. $cmakeFlags"
|
|
set +x
|
|
'';
|
|
|
|
buildInputs = [ cmake qt4 ];
|
|
}
|
|
|