1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00

Merge pull request #101216 from i077/todoist-electron/1.24

This commit is contained in:
Sandro 2020-11-27 10:05:27 +01:00 committed by GitHub
commit 3b56224dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};
}