1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

Unconditionally compile itk with shared libs

This commit is contained in:
Shea Levy 2014-03-14 20:18:17 -04:00
parent 645d54c35d
commit d1e88c4625
2 changed files with 7 additions and 8 deletions

View file

@ -1,17 +1,18 @@
{stdenv, fetchurl, cmake, libX11, libuuid, xz, sharedLibs ? false}:
{stdenv, fetchurl, cmake, libX11, libuuid, xz}:
stdenv.mkDerivation rec {
name = "itk${stdenv.lib.optionalString sharedLibs ''-shared''}-4.0.0";
name = "itk-4.0.0";
src = fetchurl {
url = mirror://sourceforge/itk/InsightToolkit-4.0.0.tar.xz;
sha256 = "05z49sw612cbyiaghcsda0xylrkf06jh81ql79si5632w1hpgbd9";
};
cmakeFlags = [ "-DBUILD_TESTING=OFF" "-DBUILD_EXAMPLES=OFF" ]
++ stdenv.lib.optional sharedLibs [
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_CXX_FLAGS=-fPIC"
cmakeFlags = [
"-DBUILD_TESTING=OFF"
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_CXX_FLAGS=-fPIC"
];
enableParallelBuilding = true;

View file

@ -4569,8 +4569,6 @@ let
itk = callPackage ../development/libraries/itk { };
itkShared = itk.override { sharedLibs = true; };
jamp = builderDefsPackage ../games/jamp {
inherit mesa SDL SDL_image SDL_mixer;
};