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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,80 @@
{ bctoolbox
, belcard
, belle-sip
, belr
, cmake
, doxygen
, fetchFromGitLab
, jsoncpp
, libxml2
, lime
, mediastreamer
, python3
, bc-soci
, sqlite
, lib
, stdenv
, xercesc
}:
stdenv.mkDerivation rec {
pname = "liblinphone";
version = "5.1.22";
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "sha256-hTyp/fUA1+7J1MtqX33kH8Vn1XNjx51Wy5REvrpdJTY=";
};
patches = [ ./use-normal-jsoncpp.patch ];
cmakeFlags = [
"-DENABLE_STATIC=NO" # Do not build static libraries
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
];
buildInputs = [
# Made by BC
belcard
belle-sip
lime
mediastreamer
# Vendored by BC
bc-soci
jsoncpp
libxml2
(python3.withPackages (ps: [ ps.pystache ps.six ]))
sqlite
xercesc
];
nativeBuildInputs = [
cmake
doxygen
];
strictDeps = true;
# Some grammar files needed to be copied too from some dependencies. I suppose
# if one define a dependency in such a way that its share directory is found,
# then this copying would be unnecessary. Instead of actually copying these
# files, create a symlink.
postInstall = ''
mkdir -p $out/share/belr/grammars
ln -s ${belcard}/share/belr/grammars/* $out/share/belr/grammars/
'';
meta = with lib; {
homepage = "https://www.linphone.org/technical-corner/liblinphone";
description = "Library for SIP calls and instant messaging";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ jluttine ];
};
}

View file

@ -0,0 +1,57 @@
From ea6901c9ed0f804bd2d6d09e514610518c2f4f09 Mon Sep 17 00:00:00 2001
From: Lorenz Brun <lorenz@brun.one>
Date: Fri, 18 Mar 2022 17:36:22 +0100
Subject: [PATCH] Use normal jsoncpp
---
src/CMakeLists.txt | 6 +++---
tester/CMakeLists.txt | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5cd87fe9a..822b2151e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -34,7 +34,7 @@ if (ENABLE_FLEXIAPI)
if (XCODE)
list(APPEND LINK_LIBS jsoncpp_static)
else()
- list(APPEND LINK_LIBS jsoncpp_object)
+ list(APPEND LINK_LIBS jsoncpp)
endif()
endif()
@@ -592,7 +592,7 @@ if(ENABLE_STATIC)
if (XCODE)
target_link_libraries(linphone PRIVATE jsoncpp_static)
else()
- target_link_libraries(linphone PRIVATE jsoncpp_object)
+ target_link_libraries(linphone PRIVATE jsoncpp)
endif()
endif()
@@ -646,7 +646,7 @@ if(ENABLE_SHARED)
if (XCODE)
target_link_libraries(linphone PRIVATE jsoncpp_static)
else()
- target_link_libraries(linphone PRIVATE jsoncpp_object)
+ target_link_libraries(linphone PRIVATE jsoncpp)
endif()
endif()
diff --git a/tester/CMakeLists.txt b/tester/CMakeLists.txt
index b97042678..b4c5a5794 100644
--- a/tester/CMakeLists.txt
+++ b/tester/CMakeLists.txt
@@ -34,7 +34,7 @@ if (ENABLE_FLEXIAPI)
if (XCODE)
list(APPEND OTHER_LIBS_FOR_TESTER jsoncpp_static)
else()
- list(APPEND OTHER_LIBS_FOR_TESTER jsoncpp_object)
+ list(APPEND OTHER_LIBS_FOR_TESTER jsoncpp)
endif()
endif()
--
2.25.1