mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 10:56:53 +00:00
8904ce343a
These have changed following commit
c3255fe8ec
.
See also:
- https://github.com/NixOS/nixpkgs/pull/31004
- https://github.com/NixOS/nixpkgs/pull/31106
44 lines
867 B
Nix
44 lines
867 B
Nix
{ stdenv, fetchFromGitHub, zlib, python, cmake }:
|
|
|
|
stdenv.mkDerivation rec
|
|
{
|
|
name = "ptex-${version}";
|
|
version = "2.1.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wdas";
|
|
repo = "ptex";
|
|
rev = "v${version}";
|
|
sha256 = "1h6gb3mpis4m6ph7h9q764w50f9jrar3jz2ja76rn5czy6wn318x";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|