2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, python, cmake, pkg-config }:
|
2017-09-17 20:51:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
2019-08-13 10:07:27 +01:00
|
|
|
pname = "ptex";
|
|
|
|
version = "2.3.2";
|
2017-09-17 20:51:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wdas";
|
|
|
|
repo = "ptex";
|
|
|
|
rev = "v${version}";
|
2019-08-13 10:07:27 +01:00
|
|
|
sha256 = "1c3pdqszn4y3d86qzng8b0hqdrchnl39adq5ab30wfnrgl2hnm4z";
|
2017-09-17 20:51:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "lib" ];
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib python pkg-config ];
|
2017-09-17 20:51:15 +01:00
|
|
|
|
2019-08-13 10:07:27 +01:00
|
|
|
# Can be removed in the next release
|
|
|
|
# https://github.com/wdas/ptex/pull/42
|
|
|
|
patchPhase = ''
|
|
|
|
echo v${version} >version
|
2017-09-17 20:51:15 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-09-17 20:51:15 +01:00
|
|
|
description = "Per-Face Texture Mapping for Production Rendering";
|
|
|
|
homepage = "http://ptex.us/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
};
|
|
|
|
}
|