From 83eb8b4a6b1e2f4e4f1c4c2473547fa8de30b9ab Mon Sep 17 00:00:00 2001 From: Las Safin Date: Thu, 26 Aug 2021 16:23:26 +0000 Subject: [PATCH] cumulus --- flake.nix | 2 +- nix/cumulus.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 nix/cumulus.nix diff --git a/flake.nix b/flake.nix index b5ba32c8..65b23603 100644 --- a/flake.nix +++ b/flake.nix @@ -80,7 +80,7 @@ platforms = platforms.all; }; - components = [ "vlsisapd" "lefdef" "bootstrap" "hurricane" "crlcore" ]; + components = [ "vlsisapd" "lefdef" "bootstrap" "hurricane" "crlcore" "cumulus" ]; in diff --git a/nix/cumulus.nix b/nix/cumulus.nix new file mode 100644 index 00000000..a5284027 --- /dev/null +++ b/nix/cumulus.nix @@ -0,0 +1,26 @@ +{ version, meta }: + +{ lib, stdenv, cmake, ninja, python2 +, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane +, coriolis-crlcore }: + +stdenv.mkDerivation { + pname = "coriolis-cumulus"; + + src = ../cumulus; + + cmakeFlags = [ + ( + "-DCMAKE_MODULE_PATH=" + + "${coriolis-bootstrap}/share/cmake/Modules" + + ";${coriolis-vlsisapd}/share/cmake/Modules" + + ";${coriolis-hurricane}/share/cmake/Modules" + + ";${coriolis-crlcore}/share/cmake/Modules" + ) + ]; + + buildInputs = [ python2 coriolis-bootstrap coriolis-vlsisapd coriolis-hurricane coriolis-crlcore ]; + nativeBuildInputs = [ cmake ninja ]; + + inherit version meta; +}