mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
03e47c388a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ptex/versions.
44 lines
866 B
Nix
44 lines
866 B
Nix
{ stdenv, fetchFromGitHub, zlib, python, cmake }:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
name = "ptex-${version}";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wdas";
|
|
repo = "ptex";
|
|
rev = "v${version}";
|
|
sha256 = "0nfz0y66bmi6xckn1whi4sfd8i3ibln212fgm4img2z98b6vccyg";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|