joplin: fix build

This commit is contained in:
natsukium 2024-03-19 18:11:50 +09:00
parent 9cd2f3f91a
commit 4d1ca28f49
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -112,7 +112,7 @@ final: prev: {
meta = oldAttrs.meta // { license = lib.licenses.unfree; }; meta = oldAttrs.meta // { license = lib.licenses.unfree; };
}); });
joplin = prev.joplin.override { joplin = prev.joplin.override (oldAttrs:{
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.pkg-config pkgs.pkg-config
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
@ -134,7 +134,21 @@ final: prev: {
darwin.apple_sdk.frameworks.AppKit darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.Security darwin.apple_sdk.frameworks.Security
]; ];
};
# add newer node-addon-api to build sharp
# https://github.com/lovell/sharp/issues/3920
dependencies = [
{
name = "node-addon-api";
packageName = "node-addon-api";
version = "7.1.0";
src = fetchurl {
url = "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz";
sha512 = "mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==";
};
}
] ++ oldAttrs.dependencies;
});
jsonplaceholder = prev.jsonplaceholder.override { jsonplaceholder = prev.jsonplaceholder.override {
buildInputs = [ nodejs ]; buildInputs = [ nodejs ];