3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/bibutils/default.nix

43 lines
1.4 KiB
Nix
Raw Normal View History

2021-05-18 21:14:57 +01:00
{ lib
, stdenv
, fetchurl
, static ? stdenv.hostPlatform.isStatic
}:
2016-01-29 02:16:01 +00:00
stdenv.mkDerivation rec {
pname = "bibutils";
2020-03-26 16:41:52 +00:00
version = "6.10";
2016-01-29 02:16:01 +00:00
src = fetchurl {
url = "mirror://sourceforge/bibutils/bibutils_${version}_src.tgz";
2020-03-26 16:41:52 +00:00
sha256 = "15p4av74ihsg03j854dkdqihpspwnp58p9g1lhx48w8kz91c0ml6";
2016-01-29 02:16:01 +00:00
};
2021-05-18 21:15:29 +01:00
preConfigure = lib.optionalString stdenv.isDarwin ''
substituteInPlace lib/Makefile.dynamic \
--replace '-Wl,-soname,$(SONAME)' ""
'';
2021-05-18 21:14:57 +01:00
configureFlags = [
(if static then "--static" else "--dynamic")
"--install-dir" "$(out)/bin"
"--install-lib" "$(out)/lib"
];
2016-01-29 02:16:01 +00:00
dontAddPrefix = true;
doCheck = true;
checkTarget = "test";
2021-05-18 21:15:29 +01:00
preCheck = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH=`pwd`/lib
'';
2016-01-29 02:16:01 +00:00
meta = with lib; {
2016-01-29 02:16:01 +00:00
description = "Bibliography format interconversion";
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.";
2020-03-26 16:41:52 +00:00
homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
2016-01-29 02:16:01 +00:00
license = licenses.gpl2;
maintainers = [ maintainers.garrison ];
2021-05-18 21:15:29 +01:00
platforms = platforms.unix;
2016-01-29 02:16:01 +00:00
};
}