nixpkgs/pkgs/development/tools/parsing/jikespg/default.nix

30 lines
683 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
2021-03-08 16:23:18 +00:00
pname = "jikespg";
version = "1.3";
2014-01-02 23:53:00 +00:00
src = fetchurl {
2021-03-08 16:23:18 +00:00
url = "mirror://sourceforge/jikes/${pname}-${version}.tar.gz";
sha256 = "083ibfxaiw1abxmv1crccx1g6sixkbyhxn2hsrlf6fwii08s6rgw";
};
2014-01-02 23:53:00 +00:00
2021-03-08 16:23:18 +00:00
postPatch = ''
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
'';
2014-01-02 23:53:00 +00:00
sourceRoot = "jikespg/src";
2021-03-08 16:23:18 +00:00
installPhase = ''
install -Dm755 -t $out/bin jikespg
'';
2014-01-02 23:53:00 +00:00
meta = with lib; {
homepage = "http://jikes.sourceforge.net/";
2014-01-02 23:53:00 +00:00
description = "The Jikes Parser Generator";
2021-03-08 16:23:18 +00:00
platforms = platforms.all;
license = licenses.ipl10;
maintainers = with maintainers; [ pSub ];
2014-01-02 23:53:00 +00:00
};
}