Unverified Commit 5b626b52 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

musicfree-desktop: fix build by updating better-sqlite3 (#507138)

parents 5df53e86 f5fa94da
Loading
Loading
Loading
Loading
+17121 −734

File changed.

Preview size limit exceeded, changes collapsed.

+2 −1
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ buildNpmPackage (finalAttrs: {
    # update sharp to recognize SHARP_FORCE_GLOBAL_LIBVIPS
    # update node-abi to support newer Electron
    # update nan to fix build with newer Electron (https://github.com/nodejs/nan/issues/921)
    # update better-sqlite3 to fix build with newer Electron
    # see update.sh for how this patch was generated
    ./bump-deps.patch

@@ -57,7 +58,7 @@ buildNpmPackage (finalAttrs: {
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcodebuild ]; # Used by better-sqlite3

  npmDepsHash = "sha256-lxDEbf++QH1/DaIEgXMnmqMD9d5Ak7IJMc5pQjysKBA=";
  npmDepsHash = "sha256-pEpU3JuxeMl0Oo/ZnmzH9/WdJ/3O2RUGofm7KXrKcAo=";

  postConfigure = ''
    # use Electron's headers to make node-gyp compile against the Electron ABI
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ else
  mv package.json package.json.old
  jq '.dependencies.sharp |= (if . != null and . < "^0.33.4" then "^0.33.4" else . end)' package.json.old > package.json
  cp package-lock.json package-lock.json.old
  npm update sharp node-abi nan --package-lock-only
  npm update sharp node-abi nan better-sqlite3 --package-lock-only
  diff -u --label a/package.json package.json.old --label b/package.json package.json > $patch || true
  diff -u --label a/package-lock.json package-lock.json.old --label b/package-lock.json package-lock.json >> $patch || true
fi