Add flake

This commit is contained in:
Rodrigo Arias 2023-06-23 16:56:30 +02:00
parent a6683056ff
commit d4e736aa9c
2 changed files with 34 additions and 15 deletions

34
flake.nix Normal file
View File

@ -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;
};
};
}

View File

@ -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
];
}