diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 851c8fbc05af..4dea3a5e153d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/by-name/si/simplenote/package.nix b/pkgs/by-name/si/simplenote/package.nix new file mode 100644 index 000000000000..3818dfb1e247 --- /dev/null +++ b/pkgs/by-name/si/simplenote/package.nix @@ -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"; + }; +}