Get oroshi working
This commit is contained in:
parent
227a8f1721
commit
f20ffa02e9
|
@ -56,13 +56,13 @@
|
||||||
pythonComponents = [
|
pythonComponents = [
|
||||||
"vlsisapd" "hurricane" "crlcore" "flute" "etesian"
|
"vlsisapd" "hurricane" "crlcore" "flute" "etesian"
|
||||||
"anabatic" "katana" "bora" "katabatic" "kite"
|
"anabatic" "katana" "bora" "katabatic" "kite"
|
||||||
"tutorial" "unicorn"
|
"tutorial" "unicorn" "oroshi"
|
||||||
];
|
];
|
||||||
|
|
||||||
components = pythonComponents ++ [
|
components = pythonComponents ++ [
|
||||||
"lefdef" "bootstrap" "cumulus" "coloquinte"
|
"lefdef" "bootstrap" "cumulus" "coloquinte"
|
||||||
"equinox" "knik" "ispd" "karakaze" "nimbus"
|
"equinox" "knik" "ispd" "karakaze" "nimbus"
|
||||||
"metis" "mauka" "oroshi" "solstice" "stratus1"
|
"metis" "mauka" "solstice" "stratus1"
|
||||||
"documentation" "unittests"
|
"documentation" "unittests"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,43 @@
|
||||||
{ version, meta }:
|
{ generic, ... }:
|
||||||
|
|
||||||
{ lib, stdenv, cmake, ninja, python2, qt4, coriolis-crlcore
|
let pkg =
|
||||||
, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane
|
{ qt4, coriolis-crlcore, doxygen, lib, python2Packages
|
||||||
, doxygen, boost }:
|
, 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 {
|
postInstall = ''
|
||||||
pname = "coriolis-oroshi";
|
# 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;
|
meta.license = lib.licenses.gpl2Plus;
|
||||||
|
};
|
||||||
buildInputs = [
|
in generic pkg
|
||||||
python2 coriolis-bootstrap coriolis-vlsisapd
|
|
||||||
coriolis-crlcore coriolis-hurricane qt4 boostWithPython
|
|
||||||
];
|
|
||||||
nativeBuildInputs = [ cmake ninja doxygen ];
|
|
||||||
|
|
||||||
inherit version meta;
|
|
||||||
}
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ from Hurricane import DbU
|
||||||
from Hurricane import DataBase
|
from Hurricane import DataBase
|
||||||
import oroshi.dtr
|
import oroshi.dtr
|
||||||
|
|
||||||
|
if not DataBase.getDB(): DataBase.create()
|
||||||
|
|
||||||
rules = None
|
rules = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue