3
0
Fork 0
forked from mirrors/nixpkgs

transfig: use imake setup hook

This commit is contained in:
Matthew Bauer 2018-11-27 21:40:57 -06:00
parent c90dba094d
commit f0077dc7da

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, zlib, libjpeg, libpng, imake}:
{ stdenv, fetchurl, zlib, libjpeg, libpng, imake, gccmakedep }:
stdenv.mkDerivation rec {
name = "transfig-3.2.4";
@ -7,7 +7,8 @@ stdenv.mkDerivation rec {
sha256 = "0429snhp5acbz61pvblwlrwv8nxr6gf12p37f9xxwrkqv4ir7dd4";
};
buildInputs = [zlib libjpeg libpng imake];
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ zlib libjpeg libpng ];
patches = [
./patch-fig2dev-dev-Imakefile
@ -45,12 +46,7 @@ stdenv.mkDerivation rec {
runHook postPatch
'';
preBuild = ''
xmkmf
make Makefiles
'';
makeFlags = [ "CC=cc" ];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
preInstall = ''
mkdir -p $out