about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/parsing/jikespg/default.nix
blob: aec4682cec2e63761589174723defbbc83b4a23d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{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";
    mainProgram = "jikespg";
    platforms = platforms.all;
    license = licenses.ipl10;
    maintainers = with maintainers; [ pSub ];
  };
}