nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, zlib, python, cmake, pkg-config }:
2
3stdenv.mkDerivation rec
4{
5 pname = "ptex";
6 version = "2.3.2";
7
8 src = fetchFromGitHub {
9 owner = "wdas";
10 repo = "ptex";
11 rev = "v${version}";
12 sha256 = "1c3pdqszn4y3d86qzng8b0hqdrchnl39adq5ab30wfnrgl2hnm4z";
13 };
14
15 outputs = [ "bin" "dev" "out" "lib" ];
16
17 buildInputs = [ zlib python cmake pkg-config ];
18
19 enableParallelBuilding = true;
20
21 # Can be removed in the next release
22 # https://github.com/wdas/ptex/pull/42
23 patchPhase = ''
24 echo v${version} >version
25 '';
26
27 meta = with stdenv.lib; {
28 description = "Per-Face Texture Mapping for Production Rendering";
29 homepage = "http://ptex.us/";
30 license = licenses.bsd3;
31 platforms = platforms.all;
32 maintainers = [ maintainers.guibou ];
33 };
34}