summary refs log tree commit diff
path: root/pkgs/applications/editors/standardnotes
diff options
context:
space:
mode:
authorMGregoire <gregoire@martinache.net>2018-10-28 22:31:18 +0100
committerVladyslav Mykhailichenko <dywedir@pm.me>2018-11-09 22:41:00 +0200
commitdb8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e (patch)
tree1d07ad036b996cfc2ccb49f0866aa07a84d8874d /pkgs/applications/editors/standardnotes
parent8c9a66412b8bdc4abea7da020b850abc34c356dd (diff)
downloadnixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.tar
nixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.tar.gz
nixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.tar.bz2
nixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.tar.lz
nixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.tar.xz
nixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.tar.zst
nixpkgs-db8f4ff49c35828f9d39f55ef9de9a7ac7dbf27e.zip
standardnotes: init at 2.3.12
Diffstat (limited to 'pkgs/applications/editors/standardnotes')
-rw-r--r--pkgs/applications/editors/standardnotes/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/applications/editors/standardnotes/default.nix b/pkgs/applications/editors/standardnotes/default.nix
new file mode 100644
index 00000000000..d9bca530948
--- /dev/null
+++ b/pkgs/applications/editors/standardnotes/default.nix
@@ -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" ];
+  };
+}