From d4e736aa9cc5078a9cfab42169f3331760677554 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 23 Jun 2023 16:56:30 +0200 Subject: [PATCH] Add flake --- flake.nix | 34 ++++++++++++++++++++++++++++++++++ shell.nix | 15 --------------- 2 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 flake.nix delete mode 100644 shell.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a10d62e --- /dev/null +++ b/flake.nix @@ -0,0 +1,34 @@ +{ + description = "bench6"; + nixConfig.bash-prompt = "\[nix-develop\]$ "; + + inputs.jungle.url = "jungle"; + + outputs = { self, jungle }: + let pkgs = jungle.packages.x86_64-linux.hut; in + { + packages.x86_64-linux.default = pkgs.stdenv.mkDerivation rec { + pname = "bench6"; + version = "local"; + + src = self.outPath; + + buildInputs = with pkgs; [ + cmake + bsc.clangOmpss2 + bsc.nanos6 + bsc.nodes + bsc.mpi + bsc.tampi + ]; + + enableParallelBuilding = false; + cmakeFlags = [ + "-DCMAKE_C_COMPILER=clang" + "-DCMAKE_CXX_COMPILER=clang++" + ]; + hardeningDisable = [ "all" ]; + dontStrip = true; + }; + }; +} diff --git a/shell.nix b/shell.nix deleted file mode 100644 index c04b746..0000000 --- a/shell.nix +++ /dev/null @@ -1,15 +0,0 @@ -let - pkgs = import (builtins.fetchTarball - "https://pm.bsc.es/gitlab/rarias/bscpkgs/-/archive/master/bscpkgs-master.tar.gz"); - - rWrapper = pkgs.rWrapper.override { - packages = with pkgs.rPackages; [ tidyverse rjson jsonlite egg viridis ]; - }; -in - pkgs.mkShell { - nativeBuildInputs = [ - pkgs.bsc.clangOmpss2 - pkgs.bsc.nanos6 - rWrapper - ]; - }