biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / notable / default.nix
blob9d1c4a246627cee9d2cc93a9e062aca982a395e1
1 { appimageTools, makeWrapper, fetchurl, lib }:
3 let
4   pname = "notable";
5   version = "1.8.4";
6   sha256 = "0rvz8zwsi62kiq89pv8n2wh9h5yb030kvdr1vf65xwqkhqcrzrby";
8   src = fetchurl {
9     url = "https://github.com/notable/notable/releases/download/v${version}/Notable-${version}.AppImage";
10     inherit sha256;
11   };
13   appimageContents = appimageTools.extract {
14     inherit pname version src;
15   };
17 appimageTools.wrapType2 rec {
19   inherit pname version src;
21   profile = ''
22     export LC_ALL=C.UTF-8
23   '';
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"
37   '';
39   meta = with lib; {
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" ];
44     maintainers = [ ];
45   };