1 { appimageTools, makeWrapper, fetchurl, lib }:
6 sha256 = "0rvz8zwsi62kiq89pv8n2wh9h5yb030kvdr1vf65xwqkhqcrzrby";
9 url = "https://github.com/notable/notable/releases/download/v${version}/Notable-${version}.AppImage";
13 appimageContents = appimageTools.extract {
14 inherit pname version src;
17 appimageTools.wrapType2 rec {
19 inherit pname version src;
25 nativeBuildInputs = [ makeWrapper ];
27 extraPkgs = pkgs: [ pkgs.at-spi2-atk pkgs.at-spi2-core ];
29 extraInstallCommands = ''
30 install -m 444 -D ${appimageContents}/notable.desktop $out/share/applications/notable.desktop
31 install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/1024x1024/apps/notable.png \
32 $out/share/icons/hicolor/1024x1024/apps/notable.png
33 substituteInPlace $out/share/applications/notable.desktop \
34 --replace 'Exec=AppRun' 'Exec=${pname}'
35 wrapProgram "$out/bin/${pname}" \
36 --add-flags "--disable-seccomp-filter-sandbox"
40 description = "Markdown-based note-taking app that doesn't suck";
41 homepage = "https://github.com/notable/notable";
42 license = licenses.unfree;
43 platforms = [ "x86_64-linux" ];