Revert "nodePackages: regenerate with node2nix 1.9.0"

This commit is contained in:
Sandro
2021-01-25 11:31:27 +01:00
committed by GitHub
parent ce7b327a52
commit 3cd31450a1
43 changed files with 12215 additions and 12676 deletions
@@ -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