nixpkgs/pkgs/development/libraries/ptex/default.nix
Ryan Mulligan fcdff20169 ptex: 2.1.28 -> 2.1.33
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
2018-03-29 11:34:26 -07:00

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