depot/third_party/nixpkgs/pkgs/development/libraries/ptex/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
798 B
Nix

{ 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 ];
};
}