Add flake
This commit is contained in:
parent
a6683056ff
commit
d4e736aa9c
34
flake.nix
Normal file
34
flake.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
15
shell.nix
15
shell.nix
@ -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
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user