nodejs-0_10: remove node.js 0.10 reaches end of LTS in a few days (see https://github.com/nodejs/LTS for details). Therefore I removed it and set 3 dependant packages to broken as they don't build anymore

authored by Christine Koppelt and committed by Graham Christensen 162c65fc 1da6dd3e

+10 -94
+3
pkgs/applications/audio/groovebasin/default.nix
··· 62 62 63 63 Groove Basin supports Last.fm scrobbling. 64 64 ''; 65 + # groovebasin was built with nodejs 0.10 which reached end of LTS 66 + # in October 216, it doesn't built with nodejs 4.x 67 + broken = true; 65 68 }; 66 69 }
+3
pkgs/development/compilers/opa/default.nix
··· 63 63 license = stdenv.lib.licenses.gpl3; 64 64 maintainers = [ stdenv.lib.maintainers.kkallio ]; 65 65 platforms = with stdenv.lib.platforms; linux; 66 + # opa was built with nodejs 0.10 which reached end of LTS 67 + # in October 216, it doesn't built with nodejs 4.x 68 + broken = true; 66 69 }; 67 70 }
-75
pkgs/development/web/nodejs/v0_10.nix
··· 1 - { stdenv, lib, fetchurl, openssl, python2, zlib, v8, utillinux, http-parser, c-ares 2 - , pkgconfig, runCommand, which, libtool 3 - 4 - # apple frameworks 5 - , CoreServices, ApplicationServices, Carbon, Foundation 6 - }: 7 - 8 - let 9 - version = "0.10.42"; 10 - 11 - # !!! Should we also do shared libuv? 12 - deps = { 13 - inherit openssl zlib; 14 - 15 - # disabled system v8 because v8 3.14 no longer receives security fixes 16 - # we fall back to nodejs' internal v8 copy which receives backports for now 17 - # inherit v8 18 - } // (stdenv.lib.optionalAttrs (!stdenv.isDarwin) { 19 - inherit http-parser; 20 - }) 21 - // ({ cares = c-ares; }); 22 - 23 - sharedConfigureFlags = name: let drv = builtins.getAttr name deps; in [ 24 - "--shared-${name}" 25 - "--shared-${name}-includes=${lib.getDev drv}/include" 26 - "--shared-${name}-libpath=${lib.getLib drv}/lib" 27 - ]; 28 - 29 - inherit (stdenv.lib) concatMap optional optionals maintainers licenses platforms; 30 - in stdenv.mkDerivation { 31 - name = "nodejs-${version}"; 32 - 33 - src = fetchurl { 34 - url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz"; 35 - sha256 = "01g19mq8b3b828f59x7bv79973w5sw4133ll1dxml37qk0vdbhgb"; 36 - }; 37 - 38 - configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ 39 - stdenv.lib.optional stdenv.isDarwin "--without-dtrace"; 40 - 41 - prePatch = '' 42 - patchShebangs . 43 - sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py 44 - sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py 45 - ''; 46 - 47 - patches = stdenv.lib.optionals stdenv.isDarwin [ ./default-arch.patch ./no-xcode.patch ]; 48 - 49 - postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 50 - (cd tools/gyp; patch -Np1 -i ${../../python-modules/gyp/no-darwin-cflags.patch}) 51 - ''; 52 - 53 - buildInputs = [ python2 which ] 54 - ++ (optional stdenv.isLinux utillinux) 55 - ++ optionals stdenv.isDarwin [ pkgconfig openssl libtool CoreServices ApplicationServices Foundation ]; 56 - propagatedBuildInputs = optionals stdenv.isDarwin [ Carbon ]; 57 - setupHook = ./setup-hook.sh; 58 - 59 - enableParallelBuilding = true; 60 - 61 - postFixup = '' 62 - pushd $out/lib/node_modules/npm/node_modules/node-gyp 63 - patch -p2 < ${./no-xcode.patch} 64 - popd 65 - ''; 66 - 67 - passthru.interpreterName = "nodejs-0.10"; 68 - 69 - meta = { 70 - description = "Event-driven I/O framework for the V8 JavaScript engine"; 71 - homepage = http://nodejs.org; 72 - license = licenses.mit; 73 - platforms = platforms.linux ++ platforms.darwin; 74 - }; 75 - }
+4 -19
pkgs/top-level/all-packages.nix
··· 2413 2413 2414 2414 ninka = callPackage ../development/tools/misc/ninka { }; 2415 2415 2416 - nodejs-0_10 = callPackage ../development/web/nodejs/v0_10.nix { 2417 - libtool = darwin.cctools; 2418 - inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices Carbon Foundation; 2419 - }; 2420 - 2421 2416 nodejs-4_x = callPackage ../development/web/nodejs/v4.nix { 2422 2417 libtool = darwin.cctools; 2423 2418 }; ··· 2426 2421 libtool = darwin.cctools; 2427 2422 }; 2428 2423 2429 - nodejs = if stdenv.system == "armv5tel-linux" then 2430 - nodejs-0_10 2431 - else 2432 - nodejs-4_x; 2424 + nodejs = nodejs-4_x; 2433 2425 2434 2426 nodePackages_6_x = callPackage ../development/node-packages/default-v6.nix { 2435 2427 nodejs = pkgs.nodejs-6_x; ··· 2439 2431 nodejs = pkgs.nodejs-4_x; 2440 2432 }; 2441 2433 2442 - nodePackages_0_10 = callPackage ../development/node-packages/default-v0_10.nix { 2443 - nodejs = pkgs.nodejs-0_10; 2444 - }; 2445 - 2446 - nodePackages = if stdenv.system == "armv5tel-linux" then 2447 - nodePackages_0_10 2448 - else 2449 - nodePackages_4_x; 2434 + nodePackages = nodePackages_4_x; 2450 2435 2451 2436 # Can be used as a user shell 2452 2437 nologin = shadow; ··· 5092 5077 inherit (ocamlPackages) ocaml-top; 5093 5078 5094 5079 opa = callPackage ../development/compilers/opa { 5095 - nodejs = nodejs-0_10; 5080 + nodejs = nodejs-4_x; 5096 5081 }; 5097 5082 5098 5083 inherit (ocaml-ng.ocamlPackages_4_01_0) opam_1_0_0; ··· 10002 9987 10003 9988 grafana = callPackage ../servers/monitoring/grafana { }; 10004 9989 10005 - groovebasin = callPackage ../applications/audio/groovebasin { nodejs = nodejs-0_10; }; 9990 + groovebasin = callPackage ../applications/audio/groovebasin { nodejs = nodejs-4_x; }; 10006 9991 10007 9992 haka = callPackage ../tools/security/haka { }; 10008 9993