uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/tools/misc/bibutils/default.nix
Normal file
42
pkgs/tools/misc/bibutils/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bibutils";
|
||||
version = "7.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/bibutils/bibutils_${version}_src.tgz";
|
||||
sha256 = "sha256-bgKK7x6Kaz5azvCYWEp7tocI81z+dAEbNBwR/qXktcM=";
|
||||
};
|
||||
|
||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace lib/Makefile.dynamic \
|
||||
--replace '-Wl,-soname,$(SONAME)' ""
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
(if static then "--static" else "--dynamic")
|
||||
"--install-dir" "$(out)/bin"
|
||||
"--install-lib" "$(out)/lib"
|
||||
];
|
||||
dontAddPrefix = true;
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "test";
|
||||
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||
export DYLD_LIBRARY_PATH=`pwd`/lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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.";
|
||||
homepage = "https://sourceforge.net/p/bibutils/home/Bibutils/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.garrison ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue