simplenote: init at version 2.27.1 (#487039)

This commit is contained in:
Arne Keller
2026-07-11 16:29:28 +02:00
committed by GitHub
2 changed files with 70 additions and 0 deletions

View File

@@ -209,6 +209,12 @@
github = "2hexed";
githubId = 54501296;
};
_2zqa = {
name = "Marijn Kok";
email = "hkju4b4ds@mozmail.com";
github = "2zqa";
githubId = 25235249;
};
_30350n = {
name = "Max Schlecht";
github = "30350n";

View File

@@ -0,0 +1,64 @@
{
appimageTools,
lib,
fetchurl,
nix-update-script,
makeDesktopItem,
}:
let
pname = "simplenote";
version = "2.27.1";
src = fetchurl {
url = "https://github.com/Automattic/simplenote-electron/releases/download/v${version}/Simplenote-linux-${version}-x86_64.AppImage";
hash = "sha512-jf9mnmf+5Xcowxgx7uizWVmv88gPdYwojQ2f+xhbqnXaHD3dSbcW2YdxiV3qjmFsRzUgwZvBVOGpOMvnSHuQDA==";
};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
__structuredAttrs = true;
strictDeps = true;
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
substituteInPlace $out/share/applications/${pname}.desktop \
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
cp -r ${appimageContents}/usr/share/icons $out/share
'';
extraPkgs =
pkgs: with pkgs; [
libsecret
libnotify
libappindicator-gtk3
];
desktopItems = [
(makeDesktopItem {
name = pname;
exec = pname;
icon = "simplenote";
genericName = "Note Taking Application";
comment = "Simplenote for Linux";
categories = [ "Utility" ];
startupNotify = true;
})
];
passthru.updateScript = nix-update-script { };
meta = {
mainProgram = "simplenote";
description = "The simplest way to keep notes";
homepage = "https://github.com/Automattic/simplenote-electron";
license = lib.licenses.gpl2Plus;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ _2zqa ];
changelog = "https://github.com/Automattic/simplenote-electron/releases/tag/v${version}/RELEASE-NOTES.md";
};
}