1 {lib, stdenv, fetchurl, runtimeShell, makeWrapper
11 url = "http://docear.org/downloads/docear_linux.tar.gz";
12 sha256 = "1g5n7r2x4gas6dl2fbyh7v9yxdcb6bzml8n3ldmpzv1rncgjcdp4";
15 nativeBuildInputs = [ makeWrapper ];
16 buildInputs = [ oraclejre ];
23 chmod 0755 $out/share/ -R
25 # The wrapper ensures oraclejre is used
26 makeWrapper ${runtimeShell} $out/bin/docear \
27 --set _JAVA_OPTIONS "${lib.optionalString antialiasFont "-Dswing.aatext=TRUE -Dawt.useSystemAAFontSettings=on"}" \
28 --set JAVA_HOME ${oraclejre.home} \
29 --add-flags "$out/share/docear.sh"
31 chmod 0755 $out/bin/docear
35 description = "Unique solution to academic literature management";
36 homepage = "http://www.docear.org/";
37 # Licenses at: http://www.docear.org/software/download/
38 license = with licenses; [
39 gpl2 # for the main software and some dependencies
40 bsd3 # for one of its dependencies
42 maintainers = with maintainers; [ unode ];
43 platforms = platforms.all;