3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/cb2bib/default.nix
2017-02-03 18:21:15 +03:00

28 lines
879 B
Nix

{ stdenv, fetchurl, qmakeHook, qtbase, qtwebkit, qtx11extras, lzo, libX11 }:
stdenv.mkDerivation rec {
name = pname + "-" + version;
pname = "cb2bib";
version = "1.9.2";
src = fetchurl {
url = "http://www.molspaces.com/dl/progs/${name}.tar.gz";
sha256 = "0yz79v023w1229wzck3gij0iqah1xg8rg4a352q8idvg7bdmyfin";
};
buildInputs = [ qtbase qtwebkit qtx11extras lzo libX11 ];
nativeBuildInputs = [ qmakeHook ];
configurePhase = ''
runHook preConfigure
./configure --prefix $out --qmakepath $QMAKE
runHook postConfigure
'';
meta = with stdenv.lib; {
description = "Rapidly extract unformatted, or unstandardized bibliographic references from email alerts, journal Web pages and PDF files";
homepage = http://www.molspaces.com/d_cb2bib-overview.php;
maintainers = with maintainers; [ edwtjo ];
license = licenses.gpl3;
};
}