crlcore
This commit is contained in:
parent
e2475c8332
commit
6beed7504c
|
@ -75,7 +75,7 @@
|
|||
pkgs = nixpkgsFor.${system};
|
||||
envFor = comp: (pkgs.python2.buildEnv.override {
|
||||
extraLibs = [ pkgs.${"coriolis-${comp}"} ];
|
||||
}).env;
|
||||
});
|
||||
in builtins.catAttrs (builtins.map (comp: { ${comp} = envFor comp; }) pythonComponents)
|
||||
);
|
||||
devShell = forAllSystems (system:
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
{ generic, ... }:
|
||||
let pkg =
|
||||
{ libxml2, qt4, bison, flex, doxygen, coriolis-vlsisapd
|
||||
, coriolis-lefdef, coriolis-hurricane }:
|
||||
, coriolis-lefdef, coriolis-hurricane, python2Packages }:
|
||||
{
|
||||
name = "crlcore";
|
||||
src = ../crlcore;
|
||||
buildInputs = [ libxml2 qt4 coriolis-lefdef coriolis-vlsisapd coriolis-hurricane ];
|
||||
nativeBuildInputs = [ bison flex doxygen ];
|
||||
pythonImportsCheck = [ "CRL" "Constant" ];
|
||||
buildInputs = [ libxml2 qt4 coriolis-lefdef coriolis-vlsisapd coriolis-hurricane python2Packages.pyqt4 python2Packages.sip_4 ];
|
||||
nativeBuildInputs = [ bison flex doxygen python2Packages.pyqt4 ];
|
||||
pythonImportsCheck = [
|
||||
"CRL" "Constant" "helpers.io" "helpers.technology"
|
||||
"helpers.utils" "helpers.analogtechno" "helpers" "helpers.overlay"
|
||||
];
|
||||
continuation = drv: drv.overrideAttrs (o: {
|
||||
postInstall = (o.postInstall or "") + ''
|
||||
ln -s crlcore/helpers $out/${python2Packages.python.sitePackages}/helpers
|
||||
'';
|
||||
});
|
||||
};
|
||||
in generic pkg
|
||||
|
|
|
@ -9,6 +9,7 @@ let f =
|
|||
, nativeBuildInputs ? []
|
||||
, propagatedBuildInputs ? []
|
||||
, pythonImportsCheck
|
||||
, continuation ? (x: x)
|
||||
}:
|
||||
let
|
||||
boostWithPython = boost.override { enablePython = true; inherit (python2Packages) python; };
|
||||
|
@ -28,7 +29,7 @@ let f =
|
|||
|
||||
inherit version meta src pythonImportsCheck;
|
||||
};
|
||||
in python2Packages.toPythonModule drv;
|
||||
in continuation (python2Packages.toPythonModule drv);
|
||||
in
|
||||
|
||||
pkg:
|
||||
|
|
Loading…
Reference in New Issue