bench6/flake.nix

45 lines
1009 B
Nix
Raw Normal View History

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 {
2024-04-26 18:50:54 +02:00
url = "https://jungle.bsc.es/git/rarias/bench6";
ref = "master";
2024-04-25 19:06:57 +02:00
};
});
2023-06-23 16:56:30 +02:00
};
};
}