Set CORIOLIS_TOP for crlcore check

This commit is contained in:
Las Safin 2021-09-01 10:03:41 +00:00
parent d4818a6b81
commit 227a8f1721
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
1 changed files with 7 additions and 3 deletions

View File

@ -7,13 +7,17 @@ let pkg =
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"
];
postInstall = ''
ln -s crlcore/helpers $out/${python2Packages.python.sitePackages}/helpers
'';
meta.license = lib.licenses.gpl2Plus;
};
in generic pkg