coriolis/nix/oroshi.nix

44 lines
1.0 KiB
Nix
Raw Normal View History

2021-09-01 06:10:59 -05:00
{ generic, ... }:
2021-08-27 11:44:57 -05:00
2021-09-01 06:10:59 -05:00
let pkg =
{ qt4, coriolis-crlcore, doxygen, lib, python2Packages
, coriolis-vlsisapd, coriolis-hurricane }:
{
name = "oroshi";
src = ../oroshi;
2021-08-27 11:44:57 -05:00
2021-09-01 12:18:05 -05:00
propagatedBuildInputs = [
2021-09-01 06:10:59 -05:00
coriolis-vlsisapd qt4 python2Packages.pyqt4
coriolis-crlcore coriolis-hurricane qt4
python2Packages.numpy
];
nativeBuildInputs = [ doxygen ];
2021-08-27 11:44:57 -05:00
2021-09-01 06:10:59 -05:00
postInstall = ''
# for import check
mkdir -p /build/coriolistop/etc/coriolis2
export CORIOLIS_TOP=/build/coriolistop
'';
pythonImportsCheck = [
"oroshi.wip_transistor"
"oroshi.wip_dp"
"oroshi.wip_csp"
"oroshi.stack"
"oroshi.resistorsnake"
"oroshi.resistor"
"oroshi.paramsmatrix"
"oroshi.nonunitcapacitor"
"oroshi.multicapacitor"
"oroshi.dtr"
"oroshi.capacitorvrtracks"
"oroshi.capacitorunit"
"oroshi.capacitorroutedsingle"
"oroshi.capacitorrouted"
"oroshi.capacitormatrix"
"oroshi"
];
2021-08-27 11:44:57 -05:00
2021-09-01 06:10:59 -05:00
meta.license = lib.licenses.gpl2Plus;
};
in generic pkg