mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
zennotes-desktop: 2.31.0 -> 2.35.0, electron 41 -> 42
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
electron_41,
|
||||
electron_42,
|
||||
makeBinaryWrapper,
|
||||
nix-update-script,
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "zennotes-desktop";
|
||||
version = "2.31.0";
|
||||
npmDepsHash = "sha256-3PvR/WcQj3Eu0qr4o+MNY+rH5SIAgLVhbHk14vzjX/Q=";
|
||||
version = "2.35.0";
|
||||
npmDepsHash = "sha256-N2boTCIA+Ca//mEVAhTeiI33GPY8NEPCBdK2xdWKl9I=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ZenNotes";
|
||||
repo = "zennotes";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-iptW9Pplvh8hGZcEXGAm1oC1y/5NOefbjHlYrft443o=";
|
||||
hash = "sha256-Q65CabiBg/azmHoJWQILThtaHcTPvdquVeyrnGh1qbg=";
|
||||
};
|
||||
|
||||
npmWorkspace = "apps/desktop";
|
||||
@@ -47,11 +47,11 @@ buildNpmPackage (finalAttrs: {
|
||||
done
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${electron_41}/bin/electron $out/bin/zennotes-desktop \
|
||||
makeWrapper ${electron_42}/bin/electron $out/bin/zennotes-desktop \
|
||||
--add-flags "$out/lib/node_modules/zennotes-monorepo/apps/desktop"
|
||||
|
||||
${lib.optionalString installCli ''
|
||||
makeWrapper ${electron_41}/libexec/electron/electron $out/bin/zn \
|
||||
makeWrapper ${electron_42}/libexec/electron/electron $out/bin/zn \
|
||||
--set ELECTRON_RUN_AS_NODE 1 \
|
||||
--add-flags "$out/lib/node_modules/zennotes-monorepo/apps/desktop/out/main/cli.js"
|
||||
''}
|
||||
|
||||
Reference in New Issue
Block a user