tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
jikespg: fix darwin build
Ben Siraphob
5 years ago
0be95fbe
30350ec0
+11
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
parsing
jikespg
default.nix
+11
-8
pkgs/development/tools/parsing/jikespg/default.nix
···
1
1
{lib, stdenv, fetchurl}:
2
2
3
3
stdenv.mkDerivation rec {
4
4
-
name = "jikespg-1.3";
4
4
+
pname = "jikespg";
5
5
+
version = "1.3";
5
6
6
7
src = fetchurl {
7
7
-
url = "mirror://sourceforge/jikes/${name}.tar.gz";
8
8
+
url = "mirror://sourceforge/jikes/${pname}-${version}.tar.gz";
8
9
sha256 = "083ibfxaiw1abxmv1crccx1g6sixkbyhxn2hsrlf6fwii08s6rgw";
9
10
};
10
11
12
12
+
postPatch = ''
13
13
+
substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
14
14
+
'';
15
15
+
11
16
sourceRoot = "jikespg/src";
12
17
13
13
-
installPhase =
14
14
-
''
15
15
-
mkdir -p $out/bin
16
16
-
cp jikespg $out/bin
17
17
-
'';
18
18
+
installPhase = ''
19
19
+
install -Dm755 -t $out/bin jikespg
20
20
+
'';
18
21
19
22
meta = with lib; {
20
23
homepage = "http://jikes.sourceforge.net/";
21
24
description = "The Jikes Parser Generator";
22
22
-
platforms = platforms.linux;
25
25
+
platforms = platforms.all;
23
26
license = licenses.ipl10;
24
27
maintainers = with maintainers; [ pSub ];
25
28
};