musicfree-desktop: fix build by updating better-sqlite3
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user