Merge pull request #101216 from i077/todoist-electron/1.24
This commit is contained in:
commit
3b56224dfd
@ -4,16 +4,18 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "todoist-electron";
|
pname = "todoist-electron";
|
||||||
version = "1.23.0";
|
version = "1.24.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/KryDos/todoist-linux/releases/download/${version}/Todoist_${version}_amd64.deb";
|
url = "https://github.com/KryDos/todoist-linux/releases/download/${version}/Todoist_${version}_amd64.deb";
|
||||||
sha256 = "1yxa0fdc3fnffny6jf1hm7545792pw7828mc27il17l4kn346g98";
|
sha256 = "0g35518z6nf6pnfyx4ax75rq8b8br72mi6wv6jzgac9ric1q4h2s";
|
||||||
};
|
};
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "Todoist";
|
name = "Todoist";
|
||||||
exec = "todoist";
|
exec = "todoist %U";
|
||||||
|
icon = "todoist";
|
||||||
|
comment = "Todoist for Linux";
|
||||||
desktopName = "Todoist";
|
desktopName = "Todoist";
|
||||||
categories = "Utility";
|
categories = "Utility";
|
||||||
};
|
};
|
||||||
@ -35,6 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
in ''
|
in ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
mv opt "$out/"
|
mv opt "$out/"
|
||||||
|
mv usr/share "$out/share"
|
||||||
|
|
||||||
# Patch binary
|
# Patch binary
|
||||||
patchelf \
|
patchelf \
|
||||||
@ -48,14 +51,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# Desktop item
|
# Desktop item
|
||||||
mkdir -p "$out/share"
|
mkdir -p "$out/share"
|
||||||
ln -s "${desktopItem}/share/applications" "$out/share/applications"
|
rm -r "$out/share/applications"
|
||||||
|
cp -r "${desktopItem}/share/applications" "$out/share/applications"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/KryDos/todoist-linux";
|
homepage = "https://github.com/KryDos/todoist-linux";
|
||||||
description = "The Linux wrapper for Todoist web version";
|
description = "The Linux wrapper for Todoist web version";
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
license = licenses.isc;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ i077 ];
|
maintainers = with maintainers; [ i077 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user