nixpkgs-suyu/pkgs/tools/misc/bibutils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.4 KiB
Nix
Raw Normal View History

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