bench6/flake.nix

34 lines
724 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 {
2023-06-23 16:56:30 +02:00
packages.x86_64-linux.default = pkgs.stdenv.mkDerivation rec {
pname = "bench6";
2024-03-14 16:25:01 +01:00
version = if self ? shortRev then self.shortRev else "dirty";
2023-06-23 16:56:30 +02:00
src = self.outPath;
buildInputs = with pkgs; [
cmake
2024-03-14 16:25:01 +01:00
clangOmpss2
nanos6
nodes
nosv
2024-03-14 16:25:01 +01:00
mpi
tampi
2023-06-23 16:56:30 +02:00
];
enableParallelBuilding = false;
hardeningDisable = [ "all" ];
dontStrip = true;
};
};
}