Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ce7b327a52d1
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1703d7a4bc7a
Choose a head ref
  • 2 commits
  • 43 files changed
  • 1 contributor

Commits on Jan 25, 2021

  1. Copy the full SHA
    3cd3145 View commit details
  2. Merge pull request #110752 from NixOS/revert-110545-node2nix-update

    Revert "nodePackages: regenerate with node2nix 1.9.0"
    SuperSandro2000 authored Jan 25, 2021
    Copy the full SHA
    1703d7a View commit details
Showing with 12,124 additions and 12,585 deletions.
  1. +5 −10 pkgs/applications/networking/cluster/spacegun/default.nix
  2. +0 −7 pkgs/applications/networking/cluster/spacegun/generate-dependencies.sh
  3. +4 −4 pkgs/applications/networking/cluster/spacegun/node-composition.nix
  4. +2,281 −1,711 pkgs/applications/networking/cluster/spacegun/node-packages.nix
  5. +3 −0 pkgs/applications/networking/cluster/spacegun/package.json
  6. +4 −4 pkgs/applications/networking/n8n/node-composition.nix
  7. +7 −32 pkgs/applications/networking/n8n/node-env.nix
  8. +611 −875 pkgs/applications/networking/n8n/node-packages.nix
  9. +4 −4 pkgs/applications/version-management/commitizen/node-composition.nix
  10. +10 −35 pkgs/applications/version-management/commitizen/node-env.nix
  11. +893 −975 pkgs/applications/version-management/commitizen/node-packages.nix
  12. +3 −1 pkgs/development/compilers/elm/packages/generate-node-packages.sh
  13. +5 −5 pkgs/development/compilers/elm/packages/node-composition.nix
  14. +542 −0 pkgs/development/compilers/elm/packages/node-env.nix
  15. +857 −618 pkgs/development/compilers/elm/packages/node-packages.nix
  16. +4 −4 pkgs/development/misc/google-clasp/google-clasp.nix
  17. +412 −422 pkgs/development/misc/google-clasp/node-packages.nix
  18. +4 −4 pkgs/development/node-packages/composition.nix
  19. +36 −55 pkgs/development/node-packages/node-env.nix
  20. +3,334 −3,130 pkgs/development/node-packages/node-packages.nix
  21. +4 −4 pkgs/development/web/newman/node-composition.nix
  22. +29 −54 pkgs/development/web/newman/node-env.nix
  23. +367 −392 pkgs/development/web/newman/node-packages.nix
  24. +1,125 −931 pkgs/development/web/remarkjs/node-packages.nix
  25. +4 −4 pkgs/development/web/remarkjs/nodepkgs.nix
  26. +160 −173 pkgs/misc/base16-builder/node-packages-generated.nix
  27. +5 −5 pkgs/misc/base16-builder/node-packages.nix
  28. +83 −70 pkgs/misc/base16-builder/supplement.nix
  29. +4 −4 pkgs/servers/matrix-synapse/matrix-appservice-slack/node-composition.nix
  30. +508 −627 pkgs/servers/matrix-synapse/matrix-appservice-slack/node-packages.nix
  31. +20 −20 pkgs/servers/web-apps/cryptpad/node-packages-generated.nix
  32. +4 −4 pkgs/servers/web-apps/cryptpad/node-packages.nix
  33. +77 −77 pkgs/servers/web-apps/whitebophir/node-packages-generated.nix
  34. +4 −4 pkgs/servers/web-apps/whitebophir/node-packages.nix
  35. +588 −2,189 pkgs/servers/zigbee2mqtt/node-packages.nix
  36. +4 −4 pkgs/servers/zigbee2mqtt/node.nix
  37. +6 −2 pkgs/tools/graphics/ldgallery/viewer/generate.sh
  38. +4 −4 pkgs/tools/graphics/ldgallery/viewer/node-composition.nix
  39. +3 −15 pkgs/tools/graphics/ldgallery/viewer/node-packages.nix
  40. +87 −87 pkgs/tools/networking/airfield/node-packages.nix
  41. +4 −4 pkgs/tools/networking/airfield/node.nix
  42. +4 −4 pkgs/tools/package-management/nixui/nixui.nix
  43. +11 −11 pkgs/tools/package-management/nixui/node-packages.nix
15 changes: 5 additions & 10 deletions pkgs/applications/networking/cluster/spacegun/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
{ pkgs, fetchFromGitHub, nodejs, stdenv, lib, ... }:
{ pkgs, nodejs, stdenv, lib, ... }:

let
src = fetchFromGitHub {
owner = "dvallin";
repo = "spacegun";
rev = "v0.3.3";
sha256 = "0cd9yzms44dj9ix8lrhbkby5zsyb8wambs24j6c3ibr67sggr6sq";
};

packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));

nodePackages = import ./node-composition.nix {
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
in
nodePackages.package.override {
inherit src;
nativeBuildInputs = [ pkgs.makeWrapper pkgs.nodePackages.node-gyp-build ];
nodePackages."${packageName}".override {
nativeBuildInputs = [ pkgs.makeWrapper ];

postInstall = ''
# Patch shebangs in node_modules, otherwise the webpack build fails with interpreter problems
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix

# Download package.json and package-lock.json from the v0.3.3 release
curl https://raw.githubusercontent.com/dvallin/spacegun/f88cfd1cf653995a301ef4db4a1e387ef3ca01a1/package.json -o package.json
curl https://raw.githubusercontent.com/dvallin/spacegun/f88cfd1cf653995a301ef4db4a1e387ef3ca01a1/package-lock.json -o package-lock.json

node2nix \
--nodejs-10 \
--node-env ../../../../development/node-packages/node-env.nix \
--development \
--input package.json \
--lock package-lock.json \
--output node-packages.nix \
--composition node-composition.nix

rm -f package.json package-lock.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This file has been generated by node2nix 1.9.0. Do not edit!
# This file has been generated by node2nix 1.8.0. Do not edit!

{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-10_x"}:

let
nodeEnv = import ../../../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile;
inherit pkgs nodejs;
inherit (pkgs) stdenv python2 util-linux runCommand writeTextFile;
inherit nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit (pkgs) fetchurl fetchgit;
inherit nodeEnv;
}
Loading