mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
037e228522
Without the change `isl_0_24` build on aarch64-linux fails due to missing $target-gcc wrapper: https://hydra.nixos.org/build/220002237 configure: error: in `/build/isl-0.24': configure: error: C compiler cannot create executables See `config.log' for more details ZHF #230712
42 lines
844 B
Nix
42 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;
|
|
};
|
|
}
|