1{
2 lib,
3 stdenv,
4 fetchurl,
5 qmake,
6 qtbase,
7 qtwebkit,
8 qtx11extras,
9 lzo,
10 libX11,
11 wrapQtAppsHook,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "cb2bib";
16 version = "2.0.0";
17 src = fetchurl {
18 url = "https://www.molspaces.com/dl/progs/${pname}-${version}.tar.gz";
19 sha256 = "0gv7cnxi84lr6d5y71pd67h0ilmf5c88j1jxgyn9dvj19smrv99h";
20 };
21 buildInputs = [
22 qtbase
23 qtwebkit
24 qtx11extras
25 lzo
26 libX11
27 ];
28 nativeBuildInputs = [
29 qmake
30 wrapQtAppsHook
31 ];
32
33 configurePhase = ''
34 runHook preConfigure
35 ./configure --prefix $out --qmakepath $QMAKE
36 runHook postConfigure
37 '';
38
39 meta = with lib; {
40 description = "Rapidly extract unformatted, or unstandardized bibliographic references from email alerts, journal Web pages and PDF files";
41 homepage = "http://www.molspaces.com/d_cb2bib-overview.php";
42 maintainers = with maintainers; [ edwtjo ];
43 license = licenses.gpl3;
44 };
45
46}