diff options
| author | Sandro <sandro.jaeckel@gmail.com> | 2020-11-27 10:05:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-27 10:05:27 +0100 |
| commit | 3b56224dfd6b98c0409fbddfc9e7818cb2b250ce (patch) | |
| tree | c232d1c478c8e7d37948e80f9f57e909ebc233dd | |
| parent | Merge pull request #105121 from r-ryantm/auto-update/1password (diff) | |
| parent | todoist-electron: Use desktop icon (diff) | |
| download | nixpkgs-3b56224dfd6b98c0409fbddfc9e7818cb2b250ce.tar.gz | |
Merge pull request #101216 from i077/todoist-electron/1.24
| -rw-r--r-- | pkgs/applications/misc/todoist-electron/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/applications/misc/todoist-electron/default.nix b/pkgs/applications/misc/todoist-electron/default.nix index 6e59395f411e..cdcb54cbc6c4 100644 --- a/pkgs/applications/misc/todoist-electron/default.nix +++ b/pkgs/applications/misc/todoist-electron/default.nix @@ -4,16 +4,18 @@ stdenv.mkDerivation rec { pname = "todoist-electron"; - version = "1.23.0"; + version = "1.24.0"; src = fetchurl { url = "https://github.com/KryDos/todoist-linux/releases/download/${version}/Todoist_${version}_amd64.deb"; - sha256 = "1yxa0fdc3fnffny6jf1hm7545792pw7828mc27il17l4kn346g98"; + sha256 = "0g35518z6nf6pnfyx4ax75rq8b8br72mi6wv6jzgac9ric1q4h2s"; }; desktopItem = makeDesktopItem { name = "Todoist"; - exec = "todoist"; + exec = "todoist %U"; + icon = "todoist"; + comment = "Todoist for Linux"; desktopName = "Todoist"; categories = "Utility"; }; @@ -35,6 +37,7 @@ stdenv.mkDerivation rec { in '' mkdir -p "$out/bin" mv opt "$out/" + mv usr/share "$out/share" # Patch binary patchelf \ @@ -48,14 +51,15 @@ stdenv.mkDerivation rec { # Desktop item 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; { homepage = "https://github.com/KryDos/todoist-linux"; description = "The Linux wrapper for Todoist web version"; platforms = [ "x86_64-linux" ]; - license = licenses.isc; + license = licenses.mit; maintainers = with maintainers; [ i077 ]; }; } |
