about summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorRenato Alves <alves.rjc@gmail.com>2019-05-21 19:01:43 +0200
committerRenato Alves <alves.rjc@gmail.com>2019-05-27 03:53:57 +0200
commitbd95c913b897fe6a0431466a8ddc6538bfa6d282 (patch)
tree99fa4ef630f455806d6e1e38ef685d733200de6f /pkgs/applications/office
parentc00a043ce2f7630e0564ba4ff3738161a9aa6349 (diff)
downloadnixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.tar
nixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.tar.gz
nixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.tar.bz2
nixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.tar.lz
nixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.tar.xz
nixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.tar.zst
nixlib-bd95c913b897fe6a0431466a8ddc6538bfa6d282.zip
docear: init at 1.2.0
Stable URLs are only provided for older versions.
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/docear/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/office/docear/default.nix b/pkgs/applications/office/docear/default.nix
new file mode 100644
index 000000000000..0d2341113b48
--- /dev/null
+++ b/pkgs/applications/office/docear/default.nix
@@ -0,0 +1,44 @@
+{stdenv, fetchurl, runtimeShell, makeWrapper
+, oraclejre
+, antialiasFont ? true
+}:
+
+stdenv.mkDerivation rec {
+  pname = "docear";
+  version = "1.2";
+
+  src = fetchurl {
+    url = "http://docear.org/downloads/docear_linux.tar.gz";
+    sha256 = "1g5n7r2x4gas6dl2fbyh7v9yxdcb6bzml8n3ldmpzv1rncgjcdp4";
+  };
+
+  buildInputs = [ oraclejre makeWrapper ];
+
+  buildPhase = "";
+  installPhase = ''
+    mkdir -p $out/bin
+    mkdir -p $out/share
+    cp -R * $out/share
+    chmod 0755 $out/share/ -R
+
+    # The wrapper ensures oraclejre is used
+    makeWrapper ${runtimeShell} $out/bin/docear \
+      --set _JAVA_OPTIONS "${stdenv.lib.optionalString antialiasFont ''-Dswing.aatext=TRUE -Dawt.useSystemAAFontSettings=on''}" \
+      --set JAVA_HOME ${oraclejre.home} \
+      --add-flags "$out/share/docear.sh"
+
+    chmod 0755 $out/bin/docear
+    '';
+
+  meta = with stdenv.lib; {
+    description = "A unique solution to academic literature management";
+    homepage = "http://www.docear.org/";
+    # Licenses at: http://www.docear.org/software/download/
+    license = with licenses; [
+      gpl2 # for the main software and some dependencies
+      bsd3 # for one of its dependencies
+    ];
+    maintainers = with maintainers; [ unode ];
+    platforms = platforms.all;
+  };
+}