diff --git a/pkgs/build-support/upstream-updater/attrset-to-dir.nix b/pkgs/build-support/upstream-updater/attrset-to-dir.nix index 24f7b735c2e2..006537278dae 100644 --- a/pkgs/build-support/upstream-updater/attrset-to-dir.nix +++ b/pkgs/build-support/upstream-updater/attrset-to-dir.nix @@ -1,8 +1,7 @@ -a : +a : a.stdenv.mkDerivation { buildCommand = '' mkdir -p "$out/attributes" - '' + (a.lib.concatStrings (map (n: '' ln -s "${a.writeTextFile {name=n; text=builtins.getAttr n a.theAttrSet;}}" $out/attributes/${n}; diff --git a/pkgs/development/libraries/languagemachines/test.nix b/pkgs/development/libraries/languagemachines/test.nix index 48c41ac52f22..26fff825a151 100644 --- a/pkgs/development/libraries/languagemachines/test.nix +++ b/pkgs/development/libraries/languagemachines/test.nix @@ -5,7 +5,7 @@ runCommand "frog-test" {} '' ${languageMachines.frog}/bin/frog >$out <&1 | grep 0bar + echo "Using node to execute the test which basically outputs an error on stderr which we grep for" + ${pkgs.nodejs}/bin/node ./xmllint.test.js --noout test/xmlid/id_err1.xml 2>&1 | grep 0bar set +x if [ $? -ne 0 ]; then @@ -77,8 +77,8 @@ rec { fi echo "================= /testing libxml2 using node =================" ''; - }); - + }); + xmlmirror = pkgs.buildEmscriptenPackage rec { pname = "xmlmirror"; version = "unstable-2016-06-05"; @@ -91,7 +91,7 @@ rec { rev = "4fd7e86f7c9526b8f4c1733e5c8b45175860a8fd"; sha256 = "1jasdqnbdnb83wbcnyrp32f36w3xwhwp0wq8lwwmhqagxrij1r4b"; }; - + configurePhase = '' rm -f fastXmlLint.js* # a fix for ERROR:root:For asm.js, TOTAL_MEMORY must be a multiple of 16MB, was 234217728 @@ -103,18 +103,18 @@ rec { # https://gitlab.com/odfplugfest/xmlmirror/issues/11 sed -e "s/-o fastXmlLint.js/-s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]' -o fastXmlLint.js/g" -i Makefile.emEnv ''; - + buildPhase = '' HOME=$TMPDIR make -f Makefile.emEnv ''; - + outputs = [ "out" "doc" ]; - + installPhase = '' mkdir -p $out/share mkdir -p $doc/share/${pname} - + cp Demo* $out/share cp -R codemirror-5.12 $out/share cp fastXmlLint.js* $out/share @@ -127,14 +127,13 @@ rec { cp README.md $doc/share/${pname} ''; checkPhase = '' - ''; - }; + }; zlib = (pkgs.zlib.override { stdenv = pkgs.emscriptenStdenv; }).overrideDerivation - (old: { + (old: { buildInputs = old.buildInputs ++ [ pkg-config ]; # we need to reset this setting! NIX_CFLAGS_COMPILE=""; @@ -165,7 +164,7 @@ rec { -L. libz.so.${old.version} -I . -o example.js echo "Using node to execute the test" - ${pkgs.nodejs}/bin/node ./example.js + ${pkgs.nodejs}/bin/node ./example.js set +x if [ $? -ne 0 ]; then @@ -183,6 +182,6 @@ rec { --replace 'AR="libtool"' 'AR="ar"' \ --replace 'ARFLAGS="-o"' 'ARFLAGS="-r"' ''; - }); - + }); + }