From b6336a02493dbfb72b5f417ba2d47a847e804bfc Mon Sep 17 00:00:00 2001 From: Las Safin Date: Fri, 27 Aug 2021 16:36:55 +0000 Subject: [PATCH] kite --- flake.nix | 2 +- kite/src/CMakeLists.txt | 2 ++ nix/kite.nix | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 nix/kite.nix diff --git a/flake.nix b/flake.nix index cd7732b6..93c22677 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,7 @@ "vlsisapd" "lefdef" "bootstrap" "hurricane" "crlcore" "cumulus" "flute" "etesian" "anabatic" "coloquinte" "katana" "bora" "equinox" "knik" "katabatic" "ispd" - "karakaze" + "karakaze" "kite" ]; in diff --git a/kite/src/CMakeLists.txt b/kite/src/CMakeLists.txt index 2c05d319..1940c6f2 100644 --- a/kite/src/CMakeLists.txt +++ b/kite/src/CMakeLists.txt @@ -3,6 +3,8 @@ # include( ${QT_USE_FILE} ) include_directories( ${KITE_SOURCE_DIR}/src ${CORIOLIS_INCLUDE_DIR} + ${KNIK_INCLUDE_DIR} + ${KATABATIC_INCLUDE_DIR} ${HURRICANE_INCLUDE_DIR} ${CONFIGURATION_INCLUDE_DIR} ${FLUTE_INCLUDE_DIR} diff --git a/nix/kite.nix b/nix/kite.nix new file mode 100644 index 00000000..f6eef440 --- /dev/null +++ b/nix/kite.nix @@ -0,0 +1,24 @@ +{ version, meta }: + +{ lib, stdenv, cmake, ninja, python2, boost +, coriolis-lefdef, coriolis-knik, coriolis-katabatic +, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane +, coriolis-crlcore, qt4, coriolis-flute, libxml2 }: + +let boostWithPython = boost.override { enablePython = true; python = python2; }; in + +stdenv.mkDerivation { + pname = "coriolis-kite"; + + src = ../kite; + + buildInputs = [ + python2 boostWithPython coriolis-bootstrap + coriolis-vlsisapd coriolis-hurricane coriolis-crlcore + coriolis-katabatic qt4 coriolis-flute coriolis-knik libxml2 + coriolis-lefdef + ]; + nativeBuildInputs = [ cmake ninja ]; + + inherit version meta; +}