Merge pull request #7033 from gebner/jabref

Add jabref, an open source bibliography manager.
This commit is contained in:
lethalman 2015-03-30 16:08:02 +02:00
commit 468876b3f0
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ stdenv, fetchurl, makeWrapper, makeDesktopItem, ant, jdk, jre }:
stdenv.mkDerivation rec {
version = "2.10";
name = "jabref-${version}";
src = fetchurl {
url = "mirror://sourceforge/jabref/${version}/JabRef-${version}-src.tar.bz2";
sha256 = "09b57afcfeb1730b58a887dc28f0f4c803e9c00fade1f57245ab70e2a98ce6ad";
};
desktopItem = makeDesktopItem {
comment = meta.description;
name = "jabref";
desktopName = "JabRef";
genericName = "Bibliography manager";
categories = "Application;Office;";
icon = "jabref";
exec = "jabref";
};
buildInputs = [ ant jdk makeWrapper ];
buildPhase = ''ant'';
installPhase = ''
mkdir -p $out/bin $out/share/java $out/share/icons
cp -r ${desktopItem}/share/applications $out/share/
cp build/lib/JabRef-${version}.jar $out/share/java/
cp src/images/JabRef-icon-mac.svg $out/share/icons/jabref.svg
makeWrapper ${jre}/bin/java $out/bin/jabref \
--add-flags "-jar $out/share/java/JabRef-${version}.jar"
'';
meta = with stdenv.lib; {
description = "Open source bibliography reference manager";
homepage = http://jabref.sourceforge.net;
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.gebner ];
};
}

View File

@ -10884,6 +10884,8 @@ let
bip = callPackage ../applications/networking/irc/bip { };
jabref = callPackage ../applications/office/jabref/default.nix { };
jack_capture = callPackage ../applications/audio/jack-capture { };
jack_oscrolloscope = callPackage ../applications/audio/jack-oscrolloscope { };