From 8c9353f791058c7e20d1da28a5ec50198f5ee011 Mon Sep 17 00:00:00 2001 From: Las Safin Date: Sun, 22 Aug 2021 11:17:47 +0000 Subject: [PATCH] hurricane builds --- flake.nix | 2 ++ nix/hurricane.nix | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 nix/hurricane.nix diff --git a/flake.nix b/flake.nix index 6d1d38fc..d1f49e0f 100644 --- a/flake.nix +++ b/flake.nix @@ -86,12 +86,14 @@ overlay = final: prev: { coriolis-vlsisapd = final.callPackage (import ./nix/vlsisapd.nix { inherit version meta; }) {}; coriolis-bootstrap = final.callPackage (import ./nix/bootstrap.nix { inherit version meta; }) {}; + coriolis-hurricane = final.callPackage (import ./nix/hurricane.nix { inherit version meta; }) {}; }; packages = forAllSystems (system: with nixpkgsFor.${system}; { vlsisapd = coriolis-vlsisapd; bootstrap = coriolis-bootstrap; + hurricane = coriolis-hurricane; }); defaultPackage = forAllSystems (system: self.packages.${system}.coriolis); diff --git a/nix/hurricane.nix b/nix/hurricane.nix new file mode 100644 index 00000000..47d4cd95 --- /dev/null +++ b/nix/hurricane.nix @@ -0,0 +1,20 @@ +{ version, meta }: + +{ lib, stdenv, python2, cmake, boost, bison, flex +, libxml2, rapidjson, which, qt4, zlib, bzip2, ninja +, coriolis-bootstrap, coriolis-vlsisapd }: + +let boostWithPython = boost.override { enablePython = true; python = python2; }; in + +stdenv.mkDerivation { + pname = "coriolis-hurricane"; + + src = ../hurricane; + + cmakeFlags = [ "-DCMAKE_MODULE_PATH=${coriolis-bootstrap}/share/cmake/Modules;${coriolis-vlsisapd}/share/cmake/Modules" ]; + + buildInputs = [ python2 boostWithPython coriolis-bootstrap libxml2 bison flex qt4 bzip2 coriolis-vlsisapd rapidjson ]; + nativeBuildInputs = [ cmake ninja ]; + + inherit version meta; +}