depot/third_party/nixpkgs/pkgs/development/libraries/isl/generic.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

41 lines
844 B
Nix

{ version
, urls
, sha256
, configureFlags ? []
, patches ? []
}:
{ lib
, stdenv
, fetchurl
, gmp
, autoreconfHook
, buildPackages
}:
stdenv.mkDerivation {
pname = "isl";
inherit version;
src = fetchurl {
inherit urls sha256;
};
inherit patches;
strictDeps = true;
depsBuildBuild = lib.optionals (lib.versionAtLeast version "0.24") [ buildPackages.stdenv.cc ];
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isRiscV && lib.versionOlder version "0.24") [ autoreconfHook ];
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;
};
}