graph500.nix 389 Bytes
Newer Older
1
{ stdenv, src, fetchgit, mpich2, zeromq, libnrm }:
Valentin Reis's avatar
Valentin Reis committed
2
stdenv.mkDerivation {
3
  inherit src;
Valentin Reis's avatar
Valentin Reis committed
4 5
  name = "graph500";

Valentin Reis's avatar
Valentin Reis committed
6
  buildInputs = [mpich2 zeromq libnrm];
Valentin Reis's avatar
Valentin Reis committed
7 8 9 10 11 12 13 14 15 16 17 18

  buildPhase = ''
    cd graph500/src
    make
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp graph500_reference_bfs $out/bin/graph500_reference_bfs
    cp graph500_reference_bfs_sssp $out/bin/graph500_reference_bfs_sssp
  '';
}