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
27
pkgs/applications/audio/opusfile/default.nix
Normal file
27
pkgs/applications/audio/opusfile/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, openssl, libogg, libopus }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opusfile";
|
||||
version = "0.12";
|
||||
src = fetchurl {
|
||||
url = "http://downloads.xiph.org/releases/opus/opusfile-${version}.tar.gz";
|
||||
sha256 = "02smwc5ah8nb3a67mnkjzqmrzk43j356hgj2a97s9midq40qd38i";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl libogg ];
|
||||
propagatedBuildInputs = [ libopus ];
|
||||
patches = [ ./include-multistream.patch ]
|
||||
# fixes problem with openssl 1.1 dependency
|
||||
# see https://github.com/xiph/opusfile/issues/13
|
||||
++ lib.optionals stdenv.hostPlatform.isWindows [ ./disable-cert-store.patch ];
|
||||
configureFlags = [ "--disable-examples" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "High-level API for decoding and seeking in .opus files";
|
||||
homepage = "https://www.opus-codec.org/";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ taeer ];
|
||||
};
|
||||
}
|
||||
35
pkgs/applications/audio/opusfile/disable-cert-store.patch
Normal file
35
pkgs/applications/audio/opusfile/disable-cert-store.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
diff --git a/src/http.c b/src/http.c
|
||||
index bd08562..3a3592c 100644
|
||||
--- a/src/http.c
|
||||
+++ b/src/http.c
|
||||
@@ -327,10 +327,12 @@ static int op_poll_win32(struct pollfd *_fds,nfds_t _nfds,int _timeout){
|
||||
typedef ptrdiff_t ssize_t;
|
||||
# endif
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
/*Load certificates from the built-in certificate store.*/
|
||||
int SSL_CTX_set_default_verify_paths_win32(SSL_CTX *_ssl_ctx);
|
||||
# define SSL_CTX_set_default_verify_paths \
|
||||
SSL_CTX_set_default_verify_paths_win32
|
||||
+#endif
|
||||
|
||||
# else
|
||||
/*Normal Berkeley sockets.*/
|
||||
diff --git a/src/wincerts.c b/src/wincerts.c
|
||||
index 409a4e0..c355952 100644
|
||||
--- a/src/wincerts.c
|
||||
+++ b/src/wincerts.c
|
||||
@@ -33,6 +33,8 @@
|
||||
# include <openssl/err.h>
|
||||
# include <openssl/x509.h>
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+
|
||||
static int op_capi_new(X509_LOOKUP *_lu){
|
||||
HCERTSTORE h_store;
|
||||
h_store=CertOpenStore(CERT_STORE_PROV_SYSTEM_A,0,0,
|
||||
@@ -171,3 +173,4 @@ int SSL_CTX_set_default_verify_paths_win32(SSL_CTX *_ssl_ctx){
|
||||
}
|
||||
|
||||
#endif
|
||||
+#endif
|
||||
12
pkgs/applications/audio/opusfile/include-multistream.patch
Normal file
12
pkgs/applications/audio/opusfile/include-multistream.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -Naur a/include/opusfile.h b/include/opusfile.h
|
||||
--- a/include/opusfile.h 2014-04-29 19:07:09.000000000 +0200
|
||||
+++ b/include/opusfile.h 2016-09-05 17:50:15.147553798 +0200
|
||||
@@ -107,7 +107,7 @@
|
||||
# include <stdarg.h>
|
||||
# include <stdio.h>
|
||||
# include <ogg/ogg.h>
|
||||
-# include <opus_multistream.h>
|
||||
+# include <opus/opus_multistream.h>
|
||||
|
||||
/**@cond PRIVATE*/
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue