parent
8c9a66412b
commit
db8f4ff49c
@ -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" ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue