nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 appimageTools,
3 lib,
4 fetchurl,
5}:
6let
7 pname = "everdo";
8 version = "1.9.0";
9
10 src = fetchurl {
11 url = "https://downloads.everdo.net/electron/Everdo-${version}.AppImage";
12 hash = "sha256-mM2rCjK548kjNR60Mr/YxBiVk+jxuVU01B9GHfIp1Mk=";
13 };
14
15 appimageContents = appimageTools.extractType2 { inherit pname version src; };
16in
17appimageTools.wrapType2 {
18 inherit pname version src;
19
20 extraInstallCommands = ''
21 install -Dm444 ${appimageContents}/everdo.desktop -t $out/share/applications
22 substituteInPlace $out/share/applications/everdo.desktop \
23 --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=everdo %u'
24 cp -r ${appimageContents}/usr/share/icons $out/share
25 '';
26
27 meta = {
28 description = "Cross-platform GTD app with focus on privacy";
29 homepage = "https://everdo.net/";
30 license = lib.licenses.unfree;
31 maintainers = [ lib.maintainers.luftmensch-luftmensch ];
32 mainProgram = "everdo";
33 platforms = [ "x86_64-linux" ];
34 };
35}