2023-04-29 16:46:19 +00:00
|
|
|
{ appimageTools, makeWrapper, fetchurl, lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "notable";
|
|
|
|
version = "1.8.4";
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "0rvz8zwsi62kiq89pv8n2wh9h5yb030kvdr1vf65xwqkhqcrzrby";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "${pname}-${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/notable/notable/releases/download/v${version}/Notable-${version}.AppImage";
|
2020-05-15 21:57:56 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extract {
|
|
|
|
inherit name src;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-05-15 21:57:56 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 rec {
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
inherit pname version src;
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
profile = ''
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
'';
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
multiArch = false; # no 32bit needed
|
2020-04-24 23:36:52 +00:00
|
|
|
extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p) ++ [ p.at-spi2-atk p.at-spi2-core ];
|
2020-05-15 21:57:56 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
mv $out/bin/{${name},${pname}}
|
|
|
|
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-04-29 16:46:19 +00:00
|
|
|
source "${makeWrapper}/nix-support/setup-hook"
|
|
|
|
wrapProgram "$out/bin/${pname}" \
|
|
|
|
--add-flags "--disable-seccomp-filter-sandbox"
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The markdown-based note-taking app that doesn't suck";
|
|
|
|
homepage = "https://github.com/notable/notable";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|