crlcore work

This commit is contained in:
Las Safin 2021-08-23 08:44:29 +00:00
parent a7ecaeaa36
commit 68400d9437
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
2 changed files with 32 additions and 1 deletions

View File

@ -80,7 +80,7 @@
platforms = platforms.all;
};
components = [ "vlsisapd" "lefdef" "bootstrap" "hurricane" ];
components = [ "vlsisapd" "lefdef" "bootstrap" "hurricane" "crlcore" ];
in

31
nix/crlcore.nix Normal file
View File

@ -0,0 +1,31 @@
{ version, meta }:
{ lib, stdenv, python2, cmake, boost, bison, flex
, libxml2, rapidjson, qt4, zlib, bzip2, ninja
, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane
, coriolis-lefdef }:
let boostWithPython = boost.override { enablePython = true; python = python2; }; in
stdenv.mkDerivation {
pname = "coriolis-crlcore";
src = ../crlcore;
cmakeFlags = [
(
"-DCMAKE_MODULE_PATH="
+ "${coriolis-bootstrap}/share/cmake/Modules"
+ ";${coriolis-vlsisapd}/share/cmake/Modules"
+ ";${coriolis-hurricane}/share/cmake/Modules"
)
];
buildInputs = [
python2 boostWithPython coriolis-bootstrap coriolis-lefdef
coriolis-hurricane coriolis-vlsisapd libxml2 bison flex qt4
];
nativeBuildInputs = [ cmake ninja ];
inherit version meta;
}