2021-12-06 16:07:01 +00:00
|
|
|
{ version
|
|
|
|
, urls
|
|
|
|
, sha256
|
|
|
|
, configureFlags ? []
|
|
|
|
, patches ? []
|
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, gmp
|
|
|
|
, autoreconfHook
|
|
|
|
, buildPackages
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "isl";
|
|
|
|
inherit version;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
inherit urls sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit patches;
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
strictDeps = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
depsBuildBuild = lib.optionals (lib.versionAtLeast version "0.24") [ buildPackages.stdenv.cc ];
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ autoreconfHook ];
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
inherit configureFlags;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://libisl.sourceforge.io/";
|
|
|
|
license = lib.licenses.lgpl21;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for manipulating sets and relations of integer points bounded by linear constraints";
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|