pagmo2: 2.8 -> 2.9 fix broken package
corrects the library nlopt location as well.
This commit is contained in:
parent
e60233db00
commit
3eb461dedb
@ -11,32 +11,34 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pagmo2-${version}";
|
name = "pagmo2-${version}";
|
||||||
version = "2.8";
|
version = "2.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "esa";
|
owner = "esa";
|
||||||
repo = "pagmo2";
|
repo = "pagmo2";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1xwxamcn3fkwr62jn6bkanrwy0cvsksf75hfwx4fvl56awnbz41z";
|
sha256 = "0al2i59m5qr83wz5n5408zvys0b3mc40rszf0l5b9a0gp1axj400";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake eigen nlopt ipopt boost ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
buildInputs = [ eigen nlopt ipopt boost ];
|
||||||
|
|
||||||
preBuild = ''
|
cmakeFlags = [
|
||||||
cp -r $src/* .
|
"-DPAGMO_BUILD_TESTS=no"
|
||||||
'';
|
"-DPAGMO_WITH_EIGEN3=yes"
|
||||||
|
"-DPAGMO_WITH_NLOPT=yes"
|
||||||
|
"-DNLOPT_LIBRARY=${nlopt}/lib/libnlopt.so"
|
||||||
|
"-DPAGMO_WITH_IPOPT=yes"
|
||||||
|
"-DCMAKE_CXX_FLAGS='-fuse-ld=gold'"
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [ "-DPAGMO_BUILD_TESTS=no"
|
# tests pass but take 30+ minutes
|
||||||
"-DPAGMO_WITH_EIGEN3=yes" "-DPAGMO_WITH_NLOPT=yes"
|
|
||||||
"-DNLOPT_LIBRARY=${nlopt}/lib/libnlopt_cxx.so" "-DPAGMO_WITH_IPOPT=yes"
|
|
||||||
"-DCMAKE_CXX_FLAGS='-fuse-ld=gold'" ];
|
|
||||||
|
|
||||||
# All but one test pass skip for now (tests also take about 30 min to compile)
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://esa.github.io/pagmo2/;
|
homepage = https://esa.github.io/pagmo2/;
|
||||||
description = "Scientific library for massively parallel optimization";
|
description = "Scientific library for massively parallel optimization";
|
||||||
license = stdenv.lib.licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user