forked from rarias/devshell
Add OmpSs-2 simple example
This commit is contained in:
36
ompss2/flake.nix
Normal file
36
ompss2/flake.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
inputs.jungle.url = "git+https://jungle.bsc.es/git/rarias/jungle";
|
||||
outputs = { self, jungle }:
|
||||
let
|
||||
nixpkgs = jungle.inputs.nixpkgs;
|
||||
customOverlay = (final: prev: {
|
||||
# Example overlay, for now empty
|
||||
});
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
overlays = [
|
||||
# Apply jungle overlay to get our BSC custom packages
|
||||
jungle.outputs.bscOverlay
|
||||
# And on top apply our local changes to customize for cluster
|
||||
customOverlay
|
||||
];
|
||||
};
|
||||
in {
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
pname = "ompss2-devshell";
|
||||
# Include these packages in the shell
|
||||
packages = with pkgs; [
|
||||
clangOmpss2Nodes
|
||||
nodes
|
||||
nosv
|
||||
ovni
|
||||
# Optional: Add wxparaver to open .prv traces (needs a working $DISPLAY)
|
||||
# wxparaver
|
||||
];
|
||||
# The dependencies needed to build these packages will be also included
|
||||
inputsFrom = with pkgs; [
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user