···11+{ stdenv, fetchurl, perl }:
22+33+stdenv.mkDerivation rec {
44+ name = "bibutils-${version}";
55+ version = "5.6";
66+77+ src = fetchurl {
88+ url = "mirror://sourceforge/bibutils/bibutils_${version}_src.tgz";
99+ sha256 = "08vlaf1rs881v61hb0dnab5brbpbwbv2hqlxmw0yaycknqwbmiwz";
1010+ };
1111+1212+ configureFlags = [ "--dynamic" "--install-dir" "$(out)/bin" "--install-lib" "$(out)/lib" ];
1313+ dontAddPrefix = true;
1414+1515+ doCheck = true;
1616+ checkTarget = "test";
1717+1818+ meta = with stdenv.lib; {
1919+ description = "Bibliography format interconversion";
2020+ 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.";
2121+ homepage = "http://sourceforge.net/p/bibutils/home/Bibutils/";
2222+ license = licenses.gpl2;
2323+ maintainers = [ maintainers.garrison ];
2424+ };
2525+}