2019-02-26 11:45:54 +00:00
|
|
|
{ stdenv, appimage-run, fetchurl, runtimeShell }:
|
2018-10-28 21:31:18 +00:00
|
|
|
|
|
|
|
let
|
2019-05-02 20:39:24 +01:00
|
|
|
version = "3.0.15";
|
2018-10-28 21:31:18 +00:00
|
|
|
|
|
|
|
plat = {
|
2019-08-13 22:52:01 +01:00
|
|
|
i386-linux = "i386";
|
|
|
|
x86_64-linux = "x86_64";
|
2018-10-28 21:31:18 +00:00
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
sha256 = {
|
2019-08-13 22:52:01 +01:00
|
|
|
i386-linux = "0v2nsis6vb1lnhmjd28vrfxqwwpycv02j0nvjlfzcgj4b3400j7a";
|
|
|
|
x86_64-linux = "130n586cw0836zsbwqcz3pp3h0d4ny74ngqs4k4cvfb92556r7xh";
|
2018-10-28 21:31:18 +00:00
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
in
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "standardnotes";
|
|
|
|
inherit version;
|
2018-10-28 21:31:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/standardnotes/desktop/releases/download/v${version}/standard-notes-${version}-${plat}.AppImage";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ appimage-run ];
|
|
|
|
|
2019-06-19 16:45:34 +01:00
|
|
|
dontUnpack = true;
|
2018-10-28 21:31:18 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share}
|
|
|
|
cp $src $out/share/standardNotes.AppImage
|
2019-02-26 11:45:54 +00:00
|
|
|
echo "#!${runtimeShell}" > $out/bin/standardnotes
|
2018-10-28 21:31:18 +00:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|