jikespg: fix darwin build
This commit is contained in:
parent
30350ec028
commit
0be95fbe46
@ -1,25 +1,28 @@
|
|||||||
{lib, stdenv, fetchurl}:
|
{lib, stdenv, fetchurl}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "jikespg-1.3";
|
pname = "jikespg";
|
||||||
|
version = "1.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/jikes/${name}.tar.gz";
|
url = "mirror://sourceforge/jikes/${pname}-${version}.tar.gz";
|
||||||
sha256 = "083ibfxaiw1abxmv1crccx1g6sixkbyhxn2hsrlf6fwii08s6rgw";
|
sha256 = "083ibfxaiw1abxmv1crccx1g6sixkbyhxn2hsrlf6fwii08s6rgw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
|
||||||
|
'';
|
||||||
|
|
||||||
sourceRoot = "jikespg/src";
|
sourceRoot = "jikespg/src";
|
||||||
|
|
||||||
installPhase =
|
installPhase = ''
|
||||||
''
|
install -Dm755 -t $out/bin jikespg
|
||||||
mkdir -p $out/bin
|
|
||||||
cp jikespg $out/bin
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://jikes.sourceforge.net/";
|
homepage = "http://jikes.sourceforge.net/";
|
||||||
description = "The Jikes Parser Generator";
|
description = "The Jikes Parser Generator";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
license = licenses.ipl10;
|
license = licenses.ipl10;
|
||||||
maintainers = with maintainers; [ pSub ];
|
maintainers = with maintainers; [ pSub ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user