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
23
pkgs/tools/misc/wv2/default.nix
Normal file
23
pkgs/tools/misc/wv2/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, cmake, libgsf, glib, libxml2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wv2";
|
||||
version = "0.4.2";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/wvware/wv2-${version}.tar.bz2";
|
||||
sha256 = "1p1qxr8z5bsiq8pvlina3c8c1vjcb5d96bs3zz4jj3nb20wnsawz";
|
||||
};
|
||||
|
||||
patches = [ ./fix-include.patch ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ libgsf glib libxml2 ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2";
|
||||
|
||||
meta = {
|
||||
description = "Excellent MS Word filter lib, used in most Office suites";
|
||||
license = lib.licenses.lgpl2;
|
||||
homepage = "http://wvware.sourceforge.net";
|
||||
};
|
||||
}
|
||||
12
pkgs/tools/misc/wv2/fix-include.patch
Normal file
12
pkgs/tools/misc/wv2/fix-include.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
From: http://sourceforge.net/tracker/?func=detail&aid=3544851&group_id=10501&atid=110501
|
||||
--- a/src/olestream.h
|
||||
+++ b/src/olestream.h
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "global.h" // U8,... typedefs
|
||||
#include <stack>
|
||||
|
||||
-#include <glib/giochannel.h> // GSeekType
|
||||
+#include <glib.h> // GSeekType
|
||||
|
||||
namespace wvWare {
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue