4 , static ? stdenv.hostPlatform.isStatic
7 stdenv.mkDerivation rec {
12 url = "mirror://sourceforge/bibutils/bibutils_${version}_src.tgz";
13 sha256 = "sha256-bgKK7x6Kaz5azvCYWEp7tocI81z+dAEbNBwR/qXktcM=";
16 preConfigure = lib.optionalString stdenv.isDarwin ''
17 substituteInPlace lib/Makefile.dynamic \
18 --replace '-Wl,-soname,$(SONAME)' ""
22 (if static then "--static" else "--dynamic")
23 "--install-dir" "$(out)/bin"
24 "--install-lib" "$(out)/lib"
30 preCheck = lib.optionalString stdenv.isDarwin ''
31 export DYLD_LIBRARY_PATH=`pwd`/lib
35 description = "Bibliography format interconversion";
36 longDescription = "The bibutils program set interconverts between various bibliography formats using a common MODS-format XML intermediate. For example, one can convert RIS-format files to Bibtex by doing two transformations: RIS->MODS->Bibtex. By using a common intermediate for N formats, only 2N programs are required and not N²-N. These programs operate on the command line and are styled after standard UNIX-like filters.";
37 homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
38 license = licenses.gpl2;
39 maintainers = [ maintainers.garrison ];
40 platforms = platforms.unix;