core/pkgs/by-name/is/isl/generic.nix

44 lines
861 B
Nix
Raw Normal View History

2024-06-30 08:12:46 +00:00
{
version,
urls,
sha256,
configureFlags ? [ ],
patches ? [ ],
2024-05-02 00:46:19 +00:00
}:
2024-06-30 08:12:46 +00:00
{
lib,
stdenv,
fetchurl,
gmp,
autoreconfHook,
buildPackages,
2024-05-02 00:46:19 +00:00
}:
stdenv.mkDerivation {
pname = "isl";
inherit version;
2024-06-30 08:12:46 +00:00
src = fetchurl { inherit urls sha256; };
2024-05-02 00:46:19 +00:00
inherit patches;
strictDeps = true;
depsBuildBuild = lib.optionals (lib.versionAtLeast version "0.24") [ buildPackages.stdenv.cc ];
2024-06-30 08:12:46 +00:00
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [
autoreconfHook
];
2024-05-02 00:46:19 +00:00
buildInputs = [ gmp ];
inherit configureFlags;
enableParallelBuilding = true;
meta = {
homepage = "https://libisl.sourceforge.io/";
license = lib.licenses.lgpl21;
description = "A library for manipulating sets and relations of integer points bounded by linear constraints";
platforms = lib.platforms.all;
};
}