2023-06-23 16:56:30 +02:00
|
|
|
{
|
|
|
|
description = "bench6";
|
|
|
|
nixConfig.bash-prompt = "\[nix-develop\]$ ";
|
|
|
|
|
2024-04-25 16:53:43 +02:00
|
|
|
inputs.jungle.url = "git+https://git.sr.ht/~rodarima/jungle";
|
2023-06-23 16:56:30 +02:00
|
|
|
|
2024-03-14 16:25:01 +01:00
|
|
|
outputs = { self, jungle, ... }:
|
|
|
|
let
|
|
|
|
targetMachine = jungle.outputs.nixosConfigurations.hut;
|
|
|
|
pkgs = targetMachine.pkgs;
|
|
|
|
in {
|
2024-04-25 17:38:24 +02:00
|
|
|
packages.x86_64-linux = rec {
|
|
|
|
default = bench6;
|
|
|
|
bench6 = pkgs.stdenv.mkDerivation rec {
|
|
|
|
pname = "bench6";
|
|
|
|
version = if self ? shortRev then self.shortRev else "dirty";
|
2023-06-23 16:56:30 +02:00
|
|
|
|
2024-04-25 17:38:24 +02:00
|
|
|
src = self.outPath;
|
2023-06-23 16:56:30 +02:00
|
|
|
|
2024-04-25 17:38:24 +02:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
bigotes
|
|
|
|
cmake
|
|
|
|
clangOmpss2
|
|
|
|
nanos6
|
|
|
|
nodes
|
|
|
|
nosv
|
|
|
|
mpi
|
|
|
|
tampi
|
|
|
|
];
|
2023-06-23 16:56:30 +02:00
|
|
|
|
2024-04-25 17:38:24 +02:00
|
|
|
enableParallelBuilding = false;
|
|
|
|
hardeningDisable = [ "all" ];
|
|
|
|
dontStrip = true;
|
|
|
|
};
|
2024-04-25 19:06:57 +02:00
|
|
|
|
|
|
|
bench6Master = bench6.overrideAttrs (old: {
|
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://pm.bsc.es/gitlab/rarias/bench6.git";
|
2024-04-26 13:08:33 +02:00
|
|
|
#ref = "master";
|
|
|
|
# FIXME: Just for testing
|
|
|
|
ref = "heat";
|
|
|
|
rev = "466e50e511e11087f6e9298b3ac851fcab7d459c";
|
2024-04-25 19:06:57 +02:00
|
|
|
};
|
|
|
|
});
|
2023-06-23 16:56:30 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|