mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
docear: init at 1.2.0
Stable URLs are only provided for older versions.
This commit is contained in:
parent
c00a043ce2
commit
bd95c913b8
44
pkgs/applications/office/docear/default.nix
Normal file
44
pkgs/applications/office/docear/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -2497,6 +2497,8 @@ in
|
||||
|
||||
docbook2mdoc = callPackage ../tools/misc/docbook2mdoc { };
|
||||
|
||||
docear = callPackage ../applications/office/docear { };
|
||||
|
||||
dockbarx = callPackage ../applications/misc/dockbarx { };
|
||||
|
||||
dog = callPackage ../tools/system/dog { };
|
||||
|
Loading…
Reference in New Issue
Block a user