24 lines
833 B
Nix
24 lines
833 B
Nix
{ generic, ... }:
|
|
let pkg =
|
|
{ lib, libxml2, qt4, bison, flex, doxygen, coriolis-vlsisapd
|
|
, coriolis-lefdef, coriolis-hurricane, python2Packages }:
|
|
{
|
|
name = "crlcore";
|
|
src = ../crlcore;
|
|
buildInputs = [ libxml2 qt4 coriolis-lefdef coriolis-vlsisapd coriolis-hurricane python2Packages.pyqt4 ];
|
|
nativeBuildInputs = [ bison flex doxygen python2Packages.pyqt4 ];
|
|
postInstall = ''
|
|
ln -s crlcore/helpers $out/${python2Packages.python.sitePackages}/helpers
|
|
|
|
# for import check
|
|
mkdir -p /build/coriolistop/etc/coriolis2
|
|
export CORIOLIS_TOP=/build/coriolistop
|
|
'';
|
|
pythonImportsCheck = [
|
|
"CRL" "Constant" "helpers.io" "helpers.technology"
|
|
"helpers.utils" "helpers.analogtechno" "helpers" "helpers.overlay"
|
|
];
|
|
meta.license = lib.licenses.gpl2Plus;
|
|
};
|
|
in generic pkg
|