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
25
pkgs/development/libraries/libotr/default.nix
Normal file
25
pkgs/development/libraries/libotr/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, stdenv, fetchurl, libgcrypt, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libotr";
|
||||
version = "4.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://otr.cypherpunks.ca/libotr-${version}.tar.gz";
|
||||
sha256 = "1x8rliydhbibmzwdbyr7pd7n87m2jmxnqkpvaalnf4154hj1hfwb";
|
||||
};
|
||||
|
||||
patches = [ ./fix-regtest-client.patch ];
|
||||
|
||||
outputs = [ "bin" "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
propagatedBuildInputs = [ libgcrypt ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.cypherpunks.ca/otr/";
|
||||
license = licenses.lgpl21;
|
||||
description = "Library for Off-The-Record Messaging";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
11
pkgs/development/libraries/libotr/fix-regtest-client.patch
Normal file
11
pkgs/development/libraries/libotr/fix-regtest-client.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
diff -Nur a/tests/regression/client/client.c b/tests/regression/client/client.c
|
||||
--- a/tests/regression/client/client.c 2015-12-25 17:39:45.000000000 +0000
|
||||
+++ b/tests/regression/client/client.c 2022-03-29 19:33:18.646398117 +0100
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <syscall.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue