2019-02-26 12:45:54 +01:00
|
|
|
{ stdenv, appimage-run, fetchurl, runtimeShell }:
|
2018-10-28 22:31:18 +01:00
|
|
|
|
|
|
|
let
|
2020-03-05 09:53:12 +01:00
|
|
|
version = "3.3.3";
|
2018-10-28 22:31:18 +01:00
|
|
|
|
|
|
|
plat = {
|
2020-03-05 09:53:12 +01:00
|
|
|
i386-linux = "-i386";
|
|
|
|
x86_64-linux = "";
|
2018-10-28 22:31:18 +01:00
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
sha256 = {
|
2020-03-05 09:53:12 +01:00
|
|
|
i386-linux = "2ccdf23588b09d645811e562d4fd7e02ac0e367bf2b34e373d8470d48544036d";
|
|
|
|
x86_64-linux = "6366d0a37cbf2cf51008a666e40bada763dd1539173de01e093bcbe4146a6bd8";
|
2018-10-28 22:31:18 +01:00
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
in
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "standardnotes";
|
|
|
|
inherit version;
|
2018-10-28 22:31:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-05 09:53:12 +01:00
|
|
|
url = "https://github.com/standardnotes/desktop/releases/download/v${version}/standard-notes-${version}${plat}.AppImage";
|
2018-10-28 22:31:18 +01:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ appimage-run ];
|
|
|
|
|
2019-06-19 17:45:34 +02:00
|
|
|
dontUnpack = true;
|
2018-10-28 22:31:18 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,share}
|
|
|
|
cp $src $out/share/standardNotes.AppImage
|
2019-02-26 12:45:54 +01:00
|
|
|
echo "#!${runtimeShell}" > $out/bin/standardnotes
|
2018-10-28 22:31:18 +01: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" ];
|
|
|
|
};
|
|
|
|
}
|