git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15738 from matthewbauer/emscripten-fix
e5ac710Joachim Schiele
pkgs/development/compilers/emscripten-fastcomp/default.nix+16−13
@@ -1,22 +1,24 @@
1−{ stdenv, fetchgit, python }:
1+{ stdenv, fetchFromGitHub, python }:
2
2
3let
3let
4− tag = "1.36.4";
4+ rev = "1.36.4";
5in
5in
6
6
7−stdenv.mkDerivation rec {
7+stdenv.mkDerivation {
8− name = "emscripten-fastcomp-${tag}";
8+ name = "emscripten-fastcomp-${rev}";
9
9
10− srcFC = fetchgit {
10+ srcFC = fetchFromGitHub {
11+ owner = "kripken";
11− url = git://github.com/kripken/emscripten-fastcomp;
12+ repo = "emscripten-fastcomp";
12− rev = "refs/tags/${tag}";
13+ sha256 = "0838rl0n9hyq5dd0gmj5rvigbmk5mhrhzyjk0zd8mjs2mk8z510l";
13− sha256 = "0qmrc83yrlmlb11gqixxnwychif964054lgdiycz0l10yj0q37j5";
14+ inherit rev;
14 };
15 };
15
16
16− srcFL = fetchgit {
17+ srcFL = fetchFromGitHub {
18+ owner = "kripken";
17− url = git://github.com/kripken/emscripten-fastcomp-clang;
19+ repo = "emscripten-fastcomp-clang";
18− rev = "refs/tags/${tag}";
20+ sha256 = "169hfabamv3jmf88flhl4scwaxdh24196gwpz3sdb26lzcns519q";
19− sha256 = "1av58y9s24l32hsdgp3jh4fkc5005xbzzjd27in2r9q3p6igd5d4";
21+ inherit rev;
20 };
22 };
21
23
22 buildInputs = [ python ];
24 buildInputs = [ python ];
@@ -33,11 +35,12 @@ stdenv.mkDerivation rec {
33 make
35 make
34 cp -a Release/bin $out
36 cp -a Release/bin $out
35 '';
37 '';
38+
36 meta = with stdenv.lib; {
39 meta = with stdenv.lib; {
37 homepage = https://github.com/kripken/emscripten-fastcomp;
40 homepage = https://github.com/kripken/emscripten-fastcomp;
38 description = "emscripten llvm";
41 description = "emscripten llvm";
39 platforms = platforms.all;
42 platforms = platforms.all;
40− maintainers = with maintainers; [ qknight ];
43+ maintainers = with maintainers; [ qknight matthewbauer ];
41 license = stdenv.lib.licenses.ncsa;
44 license = stdenv.lib.licenses.ncsa;
42 };
45 };
43}
46}
pkgs/development/compilers/emscripten/default.nix+12−10
@@ -1,20 +1,21 @@
1−{ stdenv, fetchgit, emscriptenfastcomp, python, nodejs, closurecompiler, jre }:
1+{ stdenv, fetchFromGitHub, emscriptenfastcomp, python, nodejs, closurecompiler, jre }:
2
2
3let
3let
4− tag = "1.36.4";
4+ rev = "1.36.4";
5 appdir = "share/emscripten";
5 appdir = "share/emscripten";
6in
6in
7
7
8−stdenv.mkDerivation rec {
8+stdenv.mkDerivation {
9− name = "emscripten-${tag}";
9+ name = "emscripten-${rev}";
10
10
11− src = fetchgit {
11+ src = fetchFromGitHub {
12+ owner = "kripken";
12− url = git://github.com/kripken/emscripten;
13+ repo = "emscripten";
13− rev = "refs/tags/${tag}";
14+ sha256 = "1c9592i891z1v9rp4a4lnsp14nwiqfxnh37g6xwwjd1bqx7x4hn7";
14− sha256 = "02m85xh9qx29kb6v11y072gk8fvyc23964wclr70c69j2gal2qpr";
15+ inherit rev;
15 };
16 };
16
17
17− buildCommand = ''
18+ buildCommand = ''
18 mkdir -p $out/${appdir}
19 mkdir -p $out/${appdir}
19 cp -r $src/* $out/${appdir}
20 cp -r $src/* $out/${appdir}
20 chmod -R +w $out/${appdir}
21 chmod -R +w $out/${appdir}
@@ -34,11 +35,12 @@ stdenv.mkDerivation rec {
34 echo "CLOSURE_COMPILER = '${closurecompiler}/share/java/compiler.jar'" >> $out/${appdir}/config
35 echo "CLOSURE_COMPILER = '${closurecompiler}/share/java/compiler.jar'" >> $out/${appdir}/config
35 echo "JAVA = '${jre}/bin/java'" >> $out/${appdir}/config
36 echo "JAVA = '${jre}/bin/java'" >> $out/${appdir}/config
36 '';
37 '';
38+
37 meta = with stdenv.lib; {
39 meta = with stdenv.lib; {
38 homepage = https://github.com/kripken/emscripten;
40 homepage = https://github.com/kripken/emscripten;
39 description = "An LLVM-to-JavaScript Compiler";
41 description = "An LLVM-to-JavaScript Compiler";
40 platforms = platforms.all;
42 platforms = platforms.all;
41− maintainers = with maintainers; [ qknight ];
43+ maintainers = with maintainers; [ qknight matthewbauer ];
42 license = licenses.ncsa;
44 license = licenses.ncsa;
43 };
45 };
44}
46}