Commit de5512aa authored by Valentin Reis's avatar Valentin Reis
Browse files

Refactoring

parent d12b8320
...@@ -43,7 +43,8 @@ in rec { ...@@ -43,7 +43,8 @@ in rec {
}; };
#Instrumented applications #Instrumented applications
applications = rec { applications =
let
paths = { paths = {
amg = applications/amg; amg = applications/amg;
qmcpack = applications/qmcpack; qmcpack = applications/qmcpack;
...@@ -51,9 +52,17 @@ in rec { ...@@ -51,9 +52,17 @@ in rec {
stream = applications/stream; stream = applications/stream;
lammps = applications/lammps; lammps = applications/lammps;
}; };
rawApplication = name : path: cpDefaultPin path {};
instrumentedApplication = name: path:
(cpAlternatePin path {} "nrm").overrideAttrs (oldAttrs:
{
buildInputs = oldAttrs.buildInputs ++ [nodelevel.libnrm];
});
in
rec {
raw = builtins.mapAttrs (n: path: cpDefaultPin path {}) paths; raw = builtins.mapAttrs rawApplication paths;
nrm = builtins.mapAttrs (n: path: (cpAlternatePin path {} "nrm").overrideAttrs (oldAttrs: {buildInputs = oldAttrs.buildInputs ++ [nodelevel.libnrm];})) paths; nrm = builtins.mapAttrs instrumentedApplication paths;
#{inherit (nodelevel) libnrm;}; #{inherit (nodelevel) libnrm;};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment