default.nix 322 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
{ stdenv, src, fetchgit, gfortran, pkgconfig }:
2
stdenv.mkDerivation {
Valentin Reis's avatar
Valentin Reis committed
3
  inherit src;
4
5
  name = "stream";

Valentin Reis's avatar
Valentin Reis committed
6
  nativeBuildInputs = [ gfortran pkgconfig ];
7
  buildInputs = [ ];
8

Valentin Reis's avatar
Valentin Reis committed
9
10
  buildFlags = ''CC=gcc FC=gfortran'';

11
  installPhase = ''
12
    mkdir -p $out/bin/
13
14
15
16
    cp stream_c.exe $out/bin
    cp stream_f.exe $out/bin
  '';
}