mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
30 lines
684 B
Nix
30 lines
684 B
Nix
{lib, stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jikespg";
|
|
version = "1.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/jikes/${pname}-${version}.tar.gz";
|
|
sha256 = "083ibfxaiw1abxmv1crccx1g6sixkbyhxn2hsrlf6fwii08s6rgw";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
|
|
'';
|
|
|
|
sourceRoot = "jikespg/src";
|
|
|
|
installPhase = ''
|
|
install -Dm755 -t $out/bin jikespg
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://jikes.sourceforge.net/";
|
|
description = "The Jikes Parser Generator";
|
|
platforms = platforms.all;
|
|
license = licenses.ipl10;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|