mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #50069 from dywedir/standardnotes
standardnotes: init at 2.3.12
This commit is contained in:
commit
20747f196c
@ -2695,6 +2695,11 @@
|
||||
github = "mgdelacroix";
|
||||
name = "Miguel de la Cruz";
|
||||
};
|
||||
mgregoire = {
|
||||
email = "gregoire@martinache.net";
|
||||
github = "M-Gregoire";
|
||||
name = "Gregoire Martinache";
|
||||
};
|
||||
mgttlinger = {
|
||||
email = "megoettlinger@gmail.com";
|
||||
github = "mgttlinger";
|
||||
|
48
pkgs/applications/editors/standardnotes/default.nix
Normal file
48
pkgs/applications/editors/standardnotes/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ stdenv, appimage-run, fetchurl }:
|
||||
|
||||
let
|
||||
version = "2.3.12";
|
||||
|
||||
plat = {
|
||||
"i386-linux" = "i386";
|
||||
"x86_64-linux" = "x86_64";
|
||||
}.${stdenv.hostPlatform.system};
|
||||
|
||||
sha256 = {
|
||||
"i386-linux" = "0q7izk20r14kxn3n4pn92jgnynfnlnylg55brz8n1lqxc0dc3v24";
|
||||
"x86_64-linux" = "0myg4qv0vrwh8s9sckb12ld9f86ymx4yypvpy0w5qn1bxk5hbafc";
|
||||
}.${stdenv.hostPlatform.system};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "standardnotes-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/standardnotes/desktop/releases/download/v${version}/standard-notes-${version}-${plat}.AppImage";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ appimage-run ];
|
||||
|
||||
unpackPhase = ":";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,share}
|
||||
cp $src $out/share/standardNotes.AppImage
|
||||
echo "#!/bin/sh" > $out/bin/standardnotes
|
||||
echo "${appimage-run}/bin/appimage-run $out/share/standardNotes.AppImage" >> $out/bin/standardnotes
|
||||
chmod +x $out/bin/standardnotes $out/share/standardNotes.AppImage
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple and private notes app";
|
||||
longDescription = ''
|
||||
Standard Notes is a private notes app that features unmatched simplicity,
|
||||
end-to-end encryption, powerful extensions, and open-source applications.
|
||||
'';
|
||||
homepage = https://standardnotes.org;
|
||||
license = licenses.agpl3;
|
||||
maintainers = with maintainers; [ mgregoire ];
|
||||
platforms = [ "i386-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -12427,6 +12427,8 @@ with pkgs;
|
||||
ncurses = null;
|
||||
});
|
||||
|
||||
standardnotes = callPackage ../applications/editors/standardnotes { };
|
||||
|
||||
stfl = callPackage ../development/libraries/stfl { };
|
||||
|
||||
stlink = callPackage ../development/tools/misc/stlink { };
|
||||
|
Loading…
Reference in New Issue
Block a user