depot/third_party/nixpkgs/pkgs/development/tools/parsing/jikespg/default.nix
Default email 07b8fe0546 Project import generated by Copybara.
GitOrigin-RevId: 916ee862e87ac5ee2439f2fb7856386b4dc906ae
2021-03-12 08:09:13 +01:00

29 lines
683 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 = "http://jikes.sourceforge.net/";
description = "The Jikes Parser Generator";
platforms = platforms.all;
license = licenses.ipl10;
maintainers = with maintainers; [ pSub ];
};
}