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 =
2021-10-26 16:10:09 -05:00
{ qt4, coriolis-crlcore, doxygen, lib, python3Packages
2021-09-01 06:10:59 -05:00
, 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-10-26 16:10:09 -05:00
coriolis-vlsisapd qt4 python3Packages.pyqt4
2021-09-01 06:10:59 -05:00
coriolis-crlcore coriolis-hurricane qt4
2021-10-26 16:10:09 -05:00
python3Packages.numpy
2021-09-01 06:10:59 -05:00
];
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