coriolis/nix/crlcore.nix

25 lines
927 B
Nix
Raw Normal View History

2021-08-29 14:16:28 -05:00
{ generic, ... }:
2021-08-29 13:25:21 -05:00
let pkg =
2021-08-31 14:06:30 -05:00
{ lib, libxml2, qt4, bison, flex, doxygen, coriolis-vlsisapd
2021-08-31 10:32:38 -05:00
, coriolis-lefdef, coriolis-hurricane, python2Packages }:
2021-09-01 12:18:05 -05:00
rec {
2021-08-29 13:25:21 -05:00
name = "crlcore";
src = ../crlcore;
2021-09-01 12:18:05 -05:00
propagatedBuildInputs = [ libxml2 qt4 coriolis-lefdef coriolis-vlsisapd coriolis-hurricane python2Packages.pyqt4 ];
2021-08-31 10:32:38 -05:00
nativeBuildInputs = [ bison flex doxygen python2Packages.pyqt4 ];
2021-09-01 05:03:41 -05:00
postInstall = ''
ln -s crlcore/helpers $out/${python2Packages.python.sitePackages}/helpers
2021-09-03 07:29:44 -05:00
ln -s -t $out/${python2Packages.python.sitePackages} $out/etc/coriolis2/*
2021-09-01 05:03:41 -05:00
# for import check
mkdir -p /build/coriolistop/etc/coriolis2
export CORIOLIS_TOP=/build/coriolistop
'';
2021-08-31 10:32:38 -05:00
pythonImportsCheck = [
"CRL" "Constant" "helpers.io" "helpers.technology"
"helpers.utils" "helpers.analogtechno" "helpers" "helpers.overlay"
];
2021-08-31 14:06:30 -05:00
meta.license = lib.licenses.gpl2Plus;
2021-08-29 13:25:21 -05:00
};
in generic pkg