coriolis/nix/crlcore.nix

24 lines
810 B
Nix
Raw Permalink Normal View History

2021-08-29 14:16:28 -05:00
{ generic, ... }:
2021-08-29 13:25:21 -05:00
let pkg =
2021-10-26 16:35:18 -05:00
{ lib, libxml2, qt4, bison, flex, doxygen
2021-10-26 16:10:09 -05:00
, coriolis-lefdef, coriolis-hurricane, python3Packages }:
2021-09-01 12:18:05 -05:00
rec {
2021-08-29 13:25:21 -05:00
name = "crlcore";
src = ../crlcore;
2021-10-26 16:35:18 -05:00
propagatedBuildInputs = [ libxml2 qt4 coriolis-lefdef coriolis-hurricane python3Packages.pyqt4 ];
2021-10-26 16:10:09 -05:00
nativeBuildInputs = [ bison flex doxygen python3Packages.pyqt4 ];
2021-09-01 05:03:41 -05:00
postInstall = ''
2021-10-26 16:10:09 -05:00
ln -s -t $out/${python3Packages.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