Get oroshi working
This commit is contained in:
parent
227a8f1721
commit
f20ffa02e9
|
@ -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"
|
||||
];
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,6 +3,7 @@ from Hurricane import DbU
|
|||
from Hurricane import DataBase
|
||||
import oroshi.dtr
|
||||
|
||||
if not DataBase.getDB(): DataBase.create()
|
||||
|
||||
rules = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue