mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Adding paraview.
svn path=/nixpkgs/trunk/; revision=14794
This commit is contained in:
parent
105f9f7b80
commit
0edebf5d84
34
pkgs/applications/graphics/paraview/default.nix
Normal file
34
pkgs/applications/graphics/paraview/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ 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";
|
||||||
|
};
|
||||||
|
|
||||||
|
# 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 ];
|
||||||
|
}
|
||||||
|
|
@ -8545,6 +8545,10 @@ let
|
|||||||
spellChecking = false;
|
spellChecking = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
paraview = import ../applications/graphics/paraview {
|
||||||
|
inherit fetchurl stdenv cmake qt4;
|
||||||
|
};
|
||||||
|
|
||||||
pidgin = import ../applications/networking/instant-messengers/pidgin {
|
pidgin = import ../applications/networking/instant-messengers/pidgin {
|
||||||
inherit fetchurl stdenv pkgconfig perl perlXMLParser libxml2 nss
|
inherit fetchurl stdenv pkgconfig perl perlXMLParser libxml2 nss
|
||||||
gtkspell aspell gettext ncurses avahi dbus dbus_glib lib intltool;
|
gtkspell aspell gettext ncurses avahi dbus dbus_glib lib intltool;
|
||||||
|
Loading…
Reference in New Issue
Block a user