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
36
pkgs/development/libraries/librevenge/default.nix
Normal file
36
pkgs/development/libraries/librevenge/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchurl, boost, pkg-config, cppunit, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "librevenge";
|
||||
version = "0.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/libwpd/librevenge/librevenge-${version}/librevenge-${version}.tar.xz";
|
||||
sha256 = "sha256-kz8HKfBCZ8w1S5oCvD6a/vpVEqO90LRfFZ7hSj4zR7I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
boost
|
||||
cppunit
|
||||
zlib
|
||||
];
|
||||
|
||||
# Clang and gcc-7 generate warnings, and
|
||||
# -Werror causes these warnings to be interpreted as errors
|
||||
# Simplest solution: disable -Werror
|
||||
configureFlags = [ "--disable-werror" ];
|
||||
|
||||
# Fix an issue with boost 1.59
|
||||
# This is fixed upstream so please remove this when updating
|
||||
postPatch = ''
|
||||
sed -i 's,-DLIBREVENGE_BUILD,\0 -DBOOST_ERROR_CODE_HEADER_ONLY,g' src/lib/Makefile.in
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A base library for writing document import filters";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue