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
@@ -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
@@ -1,4 +1,4 @@
# 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;
@@ -6,12 +6,12 @@
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;
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,3 @@
[
{ "spacegun": "git+https://github.com/dvallin/spacegun.git#v0.3.3" }
]