Get oroshi working

This commit is contained in:
Las Safin 2021-09-01 11:10:59 +00:00
parent 227a8f1721
commit f20ffa02e9
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
3 changed files with 42 additions and 19 deletions

View File

@ -56,13 +56,13 @@
pythonComponents = [
"vlsisapd" "hurricane" "crlcore" "flute" "etesian"
"anabatic" "katana" "bora" "katabatic" "kite"
"tutorial" "unicorn"
"tutorial" "unicorn" "oroshi"
];
components = pythonComponents ++ [
"lefdef" "bootstrap" "cumulus" "coloquinte"
"equinox" "knik" "ispd" "karakaze" "nimbus"
"metis" "mauka" "oroshi" "solstice" "stratus1"
"metis" "mauka" "solstice" "stratus1"
"documentation" "unittests"
];

View File

@ -1,21 +1,43 @@
{ version, meta }:
{ generic, ... }:
{ lib, stdenv, cmake, ninja, python2, qt4, coriolis-crlcore
, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane
, doxygen, boost }:
let pkg =
{ qt4, coriolis-crlcore, doxygen, lib, python2Packages
, coriolis-vlsisapd, coriolis-hurricane }:
{
name = "oroshi";
src = ../oroshi;
let boostWithPython = boost.override { enablePython = true; python = python2; }; in
buildInputs = [
coriolis-vlsisapd qt4 python2Packages.pyqt4
coriolis-crlcore coriolis-hurricane qt4
python2Packages.numpy
];
nativeBuildInputs = [ doxygen ];
stdenv.mkDerivation {
pname = "coriolis-oroshi";
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"
];
src = ../oroshi;
buildInputs = [
python2 coriolis-bootstrap coriolis-vlsisapd
coriolis-crlcore coriolis-hurricane qt4 boostWithPython
];
nativeBuildInputs = [ cmake ninja doxygen ];
inherit version meta;
}
meta.license = lib.licenses.gpl2Plus;
};
in generic pkg

View File

@ -3,6 +3,7 @@ from Hurricane import DbU
from Hurricane import DataBase
import oroshi.dtr
if not DataBase.getDB(): DataBase.create()
rules = None