todoist-electron: 1.0.8 -> 8.3.3

Also bump dependency:
electron_21 -> electron_24
This commit is contained in:
Chris Moultrie 2023-06-13 21:08:09 -04:00 committed by Sandro Jäckel
parent 6dfbdcaf2b
commit 1c30b4b828
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_21, libsecret }:
{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_24, libsecret }:
stdenv.mkDerivation rec {
pname = "todoist-electron";
version = "1.0.9";
version = "8.3.3";
src = fetchurl {
url = "https://electron-dl.todoist.com/linux/Todoist-${version}.AppImage";
sha256 = "sha256-DfNFDiGYTFGetVRlAjpV/cdWcGzRDEGZjR0Dc9aAtXc=";
url = "https://electron-dl.todoist.com/linux/Todoist-linux-x86_64-${version}.AppImage";
hash = "sha256-X928hCrYVOBTEZq1hmZWgWlabtOzQrLUuptF/SJcAto=";
};
appimageContents = appimageTools.extractType2 {
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
'';
postFixup = ''
makeWrapper ${electron_21}/bin/electron $out/bin/${pname} \
makeWrapper ${electron_24}/bin/electron $out/bin/todoist-electron \
--add-flags $out/share/${pname}/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc libsecret ]}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"