mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
fcdff20169
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/ptex/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - directory tree listing: https://gist.github.com/88ea582c17048ee1efddf1b2e87ef3bc
44 lines
867 B
Nix
44 lines
867 B
Nix
{ stdenv, fetchFromGitHub, zlib, python, cmake }:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
name = "ptex-${version}";
|
|
version = "2.1.33";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wdas";
|
|
repo = "ptex";
|
|
rev = "v${version}";
|
|
sha256 = "15ijjq3w7hwgm4mqah0x4jzjy3v2nnmmv28lbqzmxzcxjgh4sjkn";
|
|
};
|
|
|
|
outputs = [ "bin" "dev" "out" "lib" ];
|
|
|
|
buildInputs = [ zlib python cmake ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildPhase = ''
|
|
mkdir -p $out
|
|
|
|
make prefix=$out
|
|
|
|
mkdir -p $bin/bin
|
|
mkdir -p $dev/include
|
|
mkdir -p $lib/lib
|
|
'';
|
|
|
|
installPhase = ''
|
|
make install
|
|
mv $out/bin $bin/
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|