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 # =================================================================