mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 23:21:27 +00:00
simplenote: init at version 2.27.1 (#487039)
This commit is contained in:
@@ -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";
|
||||
|
||||
64
pkgs/by-name/si/simplenote/package.nix
Normal file
64
pkgs/by-name/si/simplenote/package.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user