2023-03-08 13:54:08 +00:00
|
|
|
{ appimageTools, makeWrapper, fetchurl, lib }:
|
2019-04-23 16:13:58 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "notable";
|
2020-03-06 14:36:12 +00:00
|
|
|
version = "1.8.4";
|
2020-03-22 13:16:35 +00:00
|
|
|
sha256 = "0rvz8zwsi62kiq89pv8n2wh9h5yb030kvdr1vf65xwqkhqcrzrby";
|
|
|
|
|
2019-04-23 16:13:58 +00:00
|
|
|
src = fetchurl {
|
2019-07-09 07:08:11 +00:00
|
|
|
url = "https://github.com/notable/notable/releases/download/v${version}/Notable-${version}.AppImage";
|
2020-03-22 13:16:35 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract {
|
2024-04-21 14:31:47 +00:00
|
|
|
inherit pname version src;
|
2019-04-23 16:13:58 +00:00
|
|
|
};
|
2020-03-22 13:16:35 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
|
2023-03-08 13:54:08 +00:00
|
|
|
inherit pname version src;
|
2020-03-22 13:16:35 +00:00
|
|
|
|
2019-04-23 16:13:58 +00:00
|
|
|
profile = ''
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
'';
|
|
|
|
|
2024-05-01 12:42:20 +00:00
|
|
|
extraPkgs = pkgs: [ pkgs.at-spi2-atk pkgs.at-spi2-core ];
|
|
|
|
|
2020-03-22 13:16:35 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
install -m 444 -D ${appimageContents}/notable.desktop $out/share/applications/notable.desktop
|
|
|
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/1024x1024/apps/notable.png \
|
|
|
|
$out/share/icons/hicolor/1024x1024/apps/notable.png
|
|
|
|
substituteInPlace $out/share/applications/notable.desktop \
|
|
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
2023-03-08 13:54:08 +00:00
|
|
|
source "${makeWrapper}/nix-support/setup-hook"
|
|
|
|
wrapProgram "$out/bin/${pname}" \
|
|
|
|
--add-flags "--disable-seccomp-filter-sandbox"
|
2020-03-22 13:16:35 +00:00
|
|
|
'';
|
2019-04-23 16:13:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-07 08:04:29 +00:00
|
|
|
description = "Markdown-based note-taking app that doesn't suck";
|
2020-03-06 14:36:12 +00:00
|
|
|
homepage = "https://github.com/notable/notable";
|
2020-03-06 22:44:36 +00:00
|
|
|
license = licenses.unfree;
|
2019-04-23 16:13:58 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|