git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15738 from matthewbauer/emscripten-fix

looks promising. let's see what hydra thinks about it. thanks

commite5ac7103ff2e5f8f5e697dc97b8b7b585dbfcaa0 authorJoachim Schiele <js@lastlog.de> dateFri 27 May 2016, 12:23 (11 years ago) parentd231cdff646b92
2 files changed+28−23
pkgs/development/compilers/emscripten-fastcomp/default.nix+16−13 pkgs/development/compilers/emscripten/default.nix+12−10
pkgs/development/compilers/emscripten-fastcomp/default.nix+16−13
@@ -1,22 +1,24 @@
1−{ stdenv, fetchgit, python }:
1+{ stdenv, fetchFromGitHub, python }:
22
33let
4− tag = "1.36.4";
4+ rev = "1.36.4";
55in
66
7−stdenv.mkDerivation rec {
8− name = "emscripten-fastcomp-${tag}";
7+stdenv.mkDerivation {
8+ name = "emscripten-fastcomp-${rev}";
99
10− srcFC = fetchgit {
11− url = git://github.com/kripken/emscripten-fastcomp;
12− rev = "refs/tags/${tag}";
13− sha256 = "0qmrc83yrlmlb11gqixxnwychif964054lgdiycz0l10yj0q37j5";
10+ srcFC = fetchFromGitHub {
11+ owner = "kripken";
12+ repo = "emscripten-fastcomp";
13+ sha256 = "0838rl0n9hyq5dd0gmj5rvigbmk5mhrhzyjk0zd8mjs2mk8z510l";
14+ inherit rev;
1415 };
1516
16− srcFL = fetchgit {
17− url = git://github.com/kripken/emscripten-fastcomp-clang;
18− rev = "refs/tags/${tag}";
19− sha256 = "1av58y9s24l32hsdgp3jh4fkc5005xbzzjd27in2r9q3p6igd5d4";
17+ srcFL = fetchFromGitHub {
18+ owner = "kripken";
19+ repo = "emscripten-fastcomp-clang";
20+ sha256 = "169hfabamv3jmf88flhl4scwaxdh24196gwpz3sdb26lzcns519q";
21+ inherit rev;
2022 };
2123
2224 buildInputs = [ python ];
@@ -33,11 +35,12 @@ stdenv.mkDerivation rec {
3335 make
3436 cp -a Release/bin $out
3537 '';
38+
3639 meta = with stdenv.lib; {
3740 homepage = https://github.com/kripken/emscripten-fastcomp;
3841 description = "emscripten llvm";
3942 platforms = platforms.all;
40− maintainers = with maintainers; [ qknight ];
43+ maintainers = with maintainers; [ qknight matthewbauer ];
4144 license = stdenv.lib.licenses.ncsa;
4245 };
4346}
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 }:
22
33let
4− tag = "1.36.4";
4+ rev = "1.36.4";
55 appdir = "share/emscripten";
66in
77
8−stdenv.mkDerivation rec {
9− name = "emscripten-${tag}";
8+stdenv.mkDerivation {
9+ name = "emscripten-${rev}";
1010
11− src = fetchgit {
12− url = git://github.com/kripken/emscripten;
13− rev = "refs/tags/${tag}";
14− sha256 = "02m85xh9qx29kb6v11y072gk8fvyc23964wclr70c69j2gal2qpr";
11+ src = fetchFromGitHub {
12+ owner = "kripken";
13+ repo = "emscripten";
14+ sha256 = "1c9592i891z1v9rp4a4lnsp14nwiqfxnh37g6xwwjd1bqx7x4hn7";
15+ inherit rev;
1516 };
1617
17− buildCommand = ''
18+ buildCommand = ''
1819 mkdir -p $out/${appdir}
1920 cp -r $src/* $out/${appdir}
2021 chmod -R +w $out/${appdir}
@@ -34,11 +35,12 @@ stdenv.mkDerivation rec {
3435 echo "CLOSURE_COMPILER = '${closurecompiler}/share/java/compiler.jar'" >> $out/${appdir}/config
3536 echo "JAVA = '${jre}/bin/java'" >> $out/${appdir}/config
3637 '';
38+
3739 meta = with stdenv.lib; {
3840 homepage = https://github.com/kripken/emscripten;
3941 description = "An LLVM-to-JavaScript Compiler";
4042 platforms = platforms.all;
41− maintainers = with maintainers; [ qknight ];
43+ maintainers = with maintainers; [ qknight matthewbauer ];
4244 license = licenses.ncsa;
4345 };
4446}