nixpkgs/pkgs/development/libraries/ptex/default.nix
Armeen Mahdian 99efa0e292 ptex: remove python2 as dependency
No longer required as of 2.4.1
2022-04-21 10:02:37 -05:00

34 lines
773 B
Nix

{ lib, stdenv, fetchFromGitHub, zlib, cmake, pkg-config }:
stdenv.mkDerivation rec
{
pname = "ptex";
version = "2.4.1";
src = fetchFromGitHub {
owner = "wdas";
repo = "ptex";
rev = "v${version}";
sha256 = "sha256-TuwgZJHvQUqBEFeZYvzpi+tmXB97SkOairYnuUahtSA=";
};
outputs = [ "bin" "dev" "out" "lib" ];
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib pkg-config ];
# Can be removed in the next release
# https://github.com/wdas/ptex/pull/42
patchPhase = ''
echo v${version} >version
'';
meta = with lib; {
description = "Per-Face Texture Mapping for Production Rendering";
homepage = "http://ptex.us/";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.guibou ];
};
}