From 054d70d23b08599958d5ea97629f493cf21dcf3a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 14 Mar 2023 14:28:47 +0100 Subject: [PATCH] Add bench6 package --- bsc/bench6/default.nix | 25 +++++++++++++++++++++++++ overlay.nix | 1 + 2 files changed, 26 insertions(+) create mode 100644 bsc/bench6/default.nix diff --git a/bsc/bench6/default.nix b/bsc/bench6/default.nix new file mode 100644 index 0000000..a0e09c0 --- /dev/null +++ b/bsc/bench6/default.nix @@ -0,0 +1,25 @@ +{ + stdenv +, clangOmpss2 +, gitBranch ? "master" +, gitURL ? "ssh://git@bscpm03.bsc.es/rarias/bench6.git" +}: + +stdenv.mkDerivation rec { + pname = "bench6"; + version = "${src.shortRev}"; + + src = builtins.fetchGit { + url = gitURL; + ref = gitBranch; + }; + + buildInputs = [ clangOmpss2 ]; + + preInstall = '' + export DESTDIR=$out + ''; + + hardeningDisable = [ "all" ]; + dontStrip = true; +} diff --git a/overlay.nix b/overlay.nix index 9ac4cdb..2ba4d06 100644 --- a/overlay.nix +++ b/overlay.nix @@ -302,6 +302,7 @@ let dummy = callPackage ./bsc/dummy/default.nix { }; mpptest = callPackage ./bsc/mpptest/default.nix { }; cpuid = callPackage ./bsc/cpuid/default.nix { }; + bench6 = callPackage ./bsc/bench6/default.nix { }; # ================================================================= # Garlic benchmark