mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ appimageTools, makeWrapper, fetchurl, lib }:
|
|
|
|
let
|
|
pname = "notable";
|
|
version = "1.8.4";
|
|
sha256 = "0rvz8zwsi62kiq89pv8n2wh9h5yb030kvdr1vf65xwqkhqcrzrby";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/notable/notable/releases/download/v${version}/Notable-${version}.AppImage";
|
|
inherit sha256;
|
|
};
|
|
|
|
appimageContents = appimageTools.extract {
|
|
inherit pname version src;
|
|
};
|
|
in
|
|
appimageTools.wrapType2 rec {
|
|
|
|
inherit pname version src;
|
|
|
|
profile = ''
|
|
export LC_ALL=C.UTF-8
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
extraPkgs = pkgs: [ pkgs.at-spi2-atk pkgs.at-spi2-core ];
|
|
|
|
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}'
|
|
wrapProgram "$out/bin/${pname}" \
|
|
--add-flags "--disable-seccomp-filter-sandbox"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Markdown-based note-taking app that doesn't suck";
|
|
homepage = "https://github.com/notable/notable";
|
|
license = licenses.unfree;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = [ ];
|
|
};
|
|
}
|