summary refs log tree commit diff
path: root/pkgs/development/libraries/ptex/default.nix
blob: b4571d07fbf35ed7fc52d27d0b5d363ba77b33bb (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
27
28
29
30
31
32
33
34
{ stdenv, fetchFromGitHub, zlib, python, cmake, pkg-config }:

stdenv.mkDerivation rec
{
  pname = "ptex";
  version = "2.3.2";

  src = fetchFromGitHub {
    owner = "wdas";
    repo = "ptex";
    rev = "v${version}";
    sha256 = "1c3pdqszn4y3d86qzng8b0hqdrchnl39adq5ab30wfnrgl2hnm4z";
  };

  outputs = [ "bin" "dev" "out" "lib" ];

  buildInputs = [ zlib python cmake pkg-config ];

  enableParallelBuilding = true;

  # Can be removed in the next release
  # https://github.com/wdas/ptex/pull/42
  patchPhase = ''
    echo v${version} >version
  '';

  meta = with stdenv.lib; {
    description = "Per-Face Texture Mapping for Production Rendering";
    homepage = "http://ptex.us/";
    license = licenses.bsd3;
    platforms = platforms.all;
    maintainers = [ maintainers.guibou ];
  };
}