From 227a8f1721de3900f39d25af998a2b989a6bb7c2 Mon Sep 17 00:00:00 2001 From: Las Safin Date: Wed, 1 Sep 2021 10:03:41 +0000 Subject: [PATCH] Set CORIOLIS_TOP for crlcore check --- nix/crlcore.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nix/crlcore.nix b/nix/crlcore.nix index 57a2cccb..4adad541 100644 --- a/nix/crlcore.nix +++ b/nix/crlcore.nix @@ -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