2018-10-28 21:31:18 +00:00
|
|
|
{ stdenv, appimage-run, fetchurl }:
|
|
|
|
|
|
|
|
let
|
2019-02-24 18:06:10 +00:00
|
|
|
version = "3.0.6";
|
2018-10-28 21:31:18 +00:00
|
|
|
|
|
|
|
plat = {
|
|
|
|
"i386-linux" = "i386";
|
|
|
|
"x86_64-linux" = "x86_64";
|
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
sha256 = {
|
2019-02-24 18:06:10 +00:00
|
|
|
"i386-linux" = "0czhlbacjks9x8y2w46nzlvk595psqhqw0vl0bvsq7sz768dk0ni";
|
|
|
|
"x86_64-linux" = "0haji9h8rrm9yvqdv6i2y6xdd0yhsssjjj83hmf6cb868lwyigsf";
|
2018-10-28 21:31:18 +00:00
|
|
|
}.${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
|
2019-01-15 22:41:31 +00:00
|
|
|
echo "#!${stdenv.shell}" > $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" ];
|
|
|
|
};
|
|
|
|
}
|