From 898534ee5218fe095c48cfbc627886e081b0be44 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 30 Nov 2021 16:18:06 +0100 Subject: [PATCH] bsc: add nosv package --- bsc/nosv/default.nix | 40 ++++++++++++++++++++++++++++++++++++++++ overlay.nix | 5 +++++ 2 files changed, 45 insertions(+) create mode 100644 bsc/nosv/default.nix diff --git a/bsc/nosv/default.nix b/bsc/nosv/default.nix new file mode 100644 index 0000000..2a9bec1 --- /dev/null +++ b/bsc/nosv/default.nix @@ -0,0 +1,40 @@ +{ + stdenv +, lib +, autoreconfHook +, pkgconfig +, numactl +, hwloc +, ovni ? null +, enableOvni ? false +, gitURL ? "git@gitlab-internal.bsc.es:nos-v/nos-v.git" +, gitBranch ? "master" +, gitCommit ? null +}: + +with lib; + +stdenv.mkDerivation rec { + pname = "nosv"; + version = "${src.shortRev}"; + + inherit gitURL gitCommit gitBranch; + + src = builtins.fetchGit ({ + url = gitURL; + ref = gitBranch; + } // (optionalAttrs (gitCommit != null) { rev = gitCommit; }) + ); + + hardeningDisable = [ "all" ]; + dontStrip = true; + + configureFlags = optional (enableOvni) "--with-ovni=${ovni}"; + + buildInputs = [ + autoreconfHook + pkgconfig + numactl + hwloc + ] ++ (optional (enableOvni) ovni); +} diff --git a/overlay.nix b/overlay.nix index f38b062..071644a 100644 --- a/overlay.nix +++ b/overlay.nix @@ -159,6 +159,11 @@ let hardeningDisable = [ "all" ]; }); + # ================================================================= + # nosv + # ================================================================= + nosv = callPackage ./bsc/nosv/default.nix { }; + # ================================================================= # MPI # =================================================================