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

Refactoring in progress.

parent ee09c130
{ stdenv, zeromq, intel, gsl, libnrm, mpich2}:
{ stdenv, src, zeromq, intel, gsl, libnrm, mpich2}:
stdenv.mkDerivation {
name = "simple-benchmarks";
inherit src;
......
......@@ -11,10 +11,11 @@
packagepins ? import ./pins.nix {inherit (pkgs) stdenv fetchgit fetchgitPrivate;}
}:
let
gitpin = f: fetchgit {inherit (stdenv.lib.importJSON f) url sha256 rev fetchSubmodules;};
toPath = s: ./. + s;
gitpin = f: pkgs.fetchgit {inherit (pkgs.lib.importJSON f) url sha256 rev fetchSubmodules;};
compiler_path = "/opt/intel/compilers_and_libraries_2017.1.132/linux";
callPackage = pkgs.lib.callPackageWith pkgs;
callPackagePin = path : depset: pkgs.lib.callPackageWith pkgs "${path}.nix" (depset//{src= gitpin "${path}.json";});
callPackagePin = path : depset: pkgs.lib.callPackageWith pkgs (toPath "/${path}.nix") (depset//{src = gitpin (toPath "/${path}.json");});
pythonPackages = pkgs.python27Packages;
in rec {
#NRM components
......@@ -36,7 +37,7 @@ in rec {
openmc = callPackage applications/openmc {};
stream = callPackage applications/stream {};
graph500 = callPackagePin "applications/simple/graph500" {};
simple = callPackage applications/simple/dgemm_randomwalk.nix {inherit intel libnrm;};
simple = callPackagePin "applications/simple/dgemm_randomwalk" {inherit intel libnrm;};
};
#Intel compilers
......
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