ISL 0.08, with some simplifications.
svn path=/nixpkgs/trunk/; revision=30632
This commit is contained in:
parent
7471f5371f
commit
e3323c4311
@ -1,31 +1,24 @@
|
|||||||
{stdenv, fetchurl, gmp, static ? false}:
|
{stdenv, fetchurl, gmp, static ? false}:
|
||||||
|
|
||||||
let
|
|
||||||
version = "0.06";
|
|
||||||
staticFlags = if static then " --enable-static --disable-shared" else "";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "isl-${version}";
|
name = "isl-0.08";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.kotnet.org/~skimo/isl/isl-${version}.tar.bz2";
|
url = "http://www.kotnet.org/~skimo/isl/${name}.tar.bz2";
|
||||||
sha256 = "0w1i1m94w0jkmm0bzlp08c4r97j7yp0d7crxf28524b9mgbg0mwk";
|
sha256 = "16rqvajcp9x6j76mg9q6bprqkgsm1zprx50j90s6v996y7ww3j9l";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ gmp ];
|
buildInputs = [ gmp ];
|
||||||
|
|
||||||
dontDisableStatic = if static then true else false;
|
dontDisableStatic = static;
|
||||||
configureFlags = "--with-gmp-prefix=${gmp}" + staticFlags;
|
configureFlags =
|
||||||
crossAttrs = {
|
stdenv.lib.optionals static [ " --enable-static" "--disable-shared" ];
|
||||||
configureFlags = configureFlags + " --with-gmp-prefix=${gmp.hostDrv} ";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.kotnet.org/~skimo/isl/;
|
homepage = http://www.kotnet.org/~skimo/isl/;
|
||||||
license = "LGPLv2.1";
|
license = "LGPLv2.1";
|
||||||
description = "A library for manipulating sets and relations of integer points bounded by linear constraints.";
|
description = "A library for manipulating sets and relations of integer points bounded by linear constraints.";
|
||||||
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user