mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ptex: 2.3.0 -> 2.3.2
This commit is contained in:
parent
cf5f02b4bb
commit
8fa1bb84e8
1 changed files with 9 additions and 18 deletions
|
@ -1,36 +1,27 @@
|
||||||
{ stdenv, fetchFromGitHub, zlib, python, cmake }:
|
{ stdenv, fetchFromGitHub, zlib, python, cmake, pkg-config }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec
|
stdenv.mkDerivation rec
|
||||||
{
|
{
|
||||||
name = "ptex-${version}";
|
pname = "ptex";
|
||||||
version = "2.3.0";
|
version = "2.3.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wdas";
|
owner = "wdas";
|
||||||
repo = "ptex";
|
repo = "ptex";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0nfz0y66bmi6xckn1whi4sfd8i3ibln212fgm4img2z98b6vccyg";
|
sha256 = "1c3pdqszn4y3d86qzng8b0hqdrchnl39adq5ab30wfnrgl2hnm4z";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "lib" ];
|
outputs = [ "bin" "dev" "out" "lib" ];
|
||||||
|
|
||||||
buildInputs = [ zlib python cmake ];
|
buildInputs = [ zlib python cmake pkg-config ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildPhase = ''
|
# Can be removed in the next release
|
||||||
mkdir -p $out
|
# https://github.com/wdas/ptex/pull/42
|
||||||
|
patchPhase = ''
|
||||||
make prefix=$out
|
echo v${version} >version
|
||||||
|
|
||||||
mkdir -p $bin/bin
|
|
||||||
mkdir -p $dev/include
|
|
||||||
mkdir -p $lib/lib
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
make install
|
|
||||||
mv $out/bin $bin/
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue