Unverified Commit d78bdd62 authored by emilylange's avatar emilylange
Browse files

sitespeed-io: unbreak build

This package does not build with nodejs_20 yet.
Yes, this package is heavily outdated (see shortly following commit),
but even with the latest upstream version, it still won't build.

To work around this, we pin the nodejs version down to nodejs_18.

Additionally, makeWrapper isn't needed, as it is already included by
default when using buildNpmPackage.
And python3 isn't needed as nativeBuildInput (but very much needed
further down below in postFixup for wrapping).
parent d24949c3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
, stdenv
, fetchFromGitHub
, buildNpmPackage
, makeWrapper
, nodejs_18
, coreutils
, ffmpeg-headless
, imagemagick_light
@@ -32,6 +32,8 @@ buildNpmPackage rec {
    hash = "sha256-Z4U4ZIw5Du/VSHIsGKdgu7wRv/6XVh/nMFDs8aYwkOQ=";
  };

  nodejs = nodejs_18;

  postPatch = ''
    ln -s npm-shrinkwrap.json package-lock.json
  '';
@@ -41,8 +43,6 @@ buildNpmPackage rec {
  GECKODRIVER_SKIP_DOWNLOAD = true;
  EDGEDRIVER_SKIP_DOWNLOAD = true;

  nativeBuildInputs = [ python3 makeWrapper ];

  dontNpmBuild = true;
  npmInstallFlags = [ "--omit=dev" ];
  npmDepsHash = "sha256-RfZlXE8hnAJKiiWdOGFsAFGcxwgnLNvLrXeIinABFb0=";