diff options
author | Joachim Schiele <js@lastlog.de> | 2018-03-18 13:34:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-18 13:34:46 +0100 |
commit | f41a3e7d7d327ea66459d17bfbe4a751b2496cb1 (patch) | |
tree | aebc1382dfa04bc080be776421868f1f92cfde49 /pkgs/development/em-modules/generic | |
parent | 705fee515050b23f0b8d9371ee3edd18879d50af (diff) | |
download | nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.tar nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.tar.gz nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.tar.bz2 nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.tar.lz nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.tar.xz nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.tar.zst nixpkgs-f41a3e7d7d327ea66459d17bfbe4a751b2496cb1.zip |
Emscripten 1.37.16 to 1.37.36 (#37291)
* trying to build emscriptenPackages not all fail * reading the console.log it turns out python executable is not in place and that is why emconfigure didnt work * backup commit * much more targets are compiling now * added common revisioning * revision bump to 1.37.36 (not tested) * fixed xmllint * forcing unit testing, will implement the tests after i get home * json_c test working * added tests * tiny fixes * added documentation
Diffstat (limited to 'pkgs/development/em-modules/generic')
-rw-r--r-- | pkgs/development/em-modules/generic/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/em-modules/generic/default.nix b/pkgs/development/em-modules/generic/default.nix index 16b8f1df595..332fab8e14a 100644 --- a/pkgs/development/em-modules/generic/default.nix +++ b/pkgs/development/em-modules/generic/default.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, emscripten }: +{ pkgs, lib, emscripten, python }: { buildInputs ? [], nativeBuildInputs ? [] @@ -11,8 +11,8 @@ pkgs.stdenv.mkDerivation ( { name = "emscripten-${args.name}"; - buildInputs = [ emscripten ] ++ buildInputs; - nativeBuildInputs = [ emscripten ] ++ nativeBuildInputs; + buildInputs = [ emscripten python ] ++ buildInputs; + nativeBuildInputs = [ emscripten python ] ++ nativeBuildInputs; # fake conftest results with emscripten's python magic EMCONFIGURE_JS=2; @@ -38,9 +38,18 @@ pkgs.stdenv.mkDerivation ( runHook postBuild ''; + doCheck = true; + checkPhase = args.checkPhase or '' runHook preCheck + echo "Please provide a test for your emscripten based library/tool, see libxml2 as an exmple on how to use emcc/node to verify your build" + echo "" + echo "In normal C 'unresolved symbols' would yield an error and a breake of execution. In contrast, in emscripten they are only a warning which is ok given that emscripten assumptions about shared libraries." + echo " -> https://github.com/kripken/emscripten/wiki/Linking" + echo "So just assume the dependencies were built using hydra, then YOU WILL NEVER see the warning and your code depending on a library will always fail!" + exit 1 + runHook postCheck ''; |