1 { appimageTools, lib, fetchurl }:
3 pname = "notion-app-enhanced";
7 url = "https://github.com/notion-enhancer/notion-repackaged/releases/download/v${version}/Notion-Enhanced-${version}.AppImage";
8 sha256 = "sha256-SqeMnoMzxxaViJ3NPccj3kyMc1xvXWULM6hQIDZySWY=";
11 appimageContents = appimageTools.extract { inherit pname version src; };
12 in appimageTools.wrapType2 {
13 inherit pname version src;
15 extraInstallCommands = ''
16 install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
17 substituteInPlace $out/share/applications/${pname}.desktop \
18 --replace 'Exec=AppRun' 'Exec=${pname}'
19 cp -r ${appimageContents}/usr/share/icons $out/share
23 description = "Notion Desktop builds with Notion Enhancer for Windows, MacOS and Linux";
24 homepage = "https://github.com/notion-enhancer/desktop";
25 license = licenses.unfree;
26 maintainers = with maintainers; [ sei40kr ];
27 platforms = [ "x86_64-linux" ];
28 mainProgram = "notion-app-enhanced";