32 lines
800 B
Nix
32 lines
800 B
Nix
|
{ 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;
|
||
|
}
|