about summary refs log tree commit diff
path: root/pkgs/applications/graphics/pbrt/default.nix
blob: 1c582df50dead922b05b9ef508c17e50b298fb45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{stdenv, fetchFromGitHub, flex, bison, cmake, git, zlib}:

stdenv.mkDerivation rec {

  version = "2017-01-12";
  name = "pbrt-v3-${version}";

  src = fetchFromGitHub {
    rev = "35b6da3429526f2026fe5e5ebaf36d593e113028";
    owner  = "mmp";
    repo   = "pbrt-v3";
    sha256 = "10lvbph13p6ilzqb8sgrvn9gg1zmi8wpy3hhjbqp8dnsa4x0mhj7";
    fetchSubmodules = true;
  };

  buildInputs = [ git flex bison cmake zlib ];

  meta = with stdenv.lib; {
    homepage = http://pbrt.org;
    description = "The renderer described in the third edition of the book 'Physically Based Rendering: From Theory To Implementation'";
    platforms = platforms.linux ;
    license = licenses.bsd2;
    maintainers = [ maintainers.juliendehos ];
    priority = 10;
  };
}