fix karakaze

This commit is contained in:
Las Safin 2021-09-03 13:33:48 +00:00
parent 1fddafc814
commit fd55e99a7c
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
2 changed files with 23 additions and 16 deletions

View File

@ -14,11 +14,13 @@
check_distribution()
setup_sysconfdir("${CMAKE_INSTALL_PREFIX}")
setup_qt()
find_package(PythonLibs 2 REQUIRED)
find_package(PythonSitePackages REQUIRED)
find_package(HURRICANE REQUIRED)
find_package(CORIOLIS REQUIRED)
find_package(KATANA REQUIRED)
find_package(ANABATIC REQUIRED)
#find_package(BORA REQUIRED) # FIXME
#add_subdirectory(src)
add_subdirectory(python)

View File

@ -1,18 +1,23 @@
{ version, meta }:
{ generic, ... }:
{ lib, stdenv, cmake, ninja, python2, qt4, coriolis-crlcore
, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane }:
let pkg =
{ lib, coriolis-crlcore, coriolis-bora, coriolis-katana, coriolis-anabatic
, coriolis-vlsisapd, coriolis-hurricane }:
{
name = "coriolis-karakaze";
src = ../karakaze;
stdenv.mkDerivation {
pname = "coriolis-karakaze";
propagatedBuildInputs = [
coriolis-vlsisapd coriolis-crlcore coriolis-hurricane coriolis-katana
coriolis-bora coriolis-anabatic
];
postInstall = ''
# for import check
mkdir -p /build/coriolistop/etc/coriolis2
export CORIOLIS_TOP=/build/coriolistop
'';
pythonImportsCheck = [ "karakaze" "karakaze.analogdesign" ];
src = ../karakaze;
buildInputs = [
python2 coriolis-bootstrap coriolis-vlsisapd
coriolis-crlcore coriolis-hurricane qt4
];
nativeBuildInputs = [ cmake ninja ];
inherit version meta;
}
meta.license = lib.licenses.gpl2Plus;
};
in generic pkg