evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ap / appimagekit / nix.patch
blobf03922cb5ca4963938f9a13d649f7cb29546d70e
1 Submodule lib/libappimage contains modified content
2 diff --git a/lib/libappimage/cmake/dependencies.cmake b/lib/libappimage/cmake/dependencies.cmake
3 index 8d96484..c7b17a1 100644
4 --- a/lib/libappimage/cmake/dependencies.cmake
5 +++ b/lib/libappimage/cmake/dependencies.cmake
6 @@ -91,9 +91,18 @@ if(NOT USE_SYSTEM_SQUASHFUSE)
7 INCLUDE_DIRS "<SOURCE_DIR>"
9 else()
10 - message(STATUS "Using system squashfuse")
11 + message(STATUS "Using system squashfsfuse from ${SQUASHFUSE}")
13 - import_pkgconfig_target(TARGET_NAME libsquashfuse PKGCONFIG_TARGET squashfuse)
14 + add_library(libsquashfuse INTERFACE IMPORTED GLOBAL)
16 + set(squashfuse_INCLUDE_DIRS "${SQUASHFUSE}/include")
17 + set(squashfuse_LIBRARIES "${SQUASHFUSE}/lib/libsquashfuse.a;${SQUASHFUSE}/lib/libsquashfuse_ll.a;${SQUASHFUSE}/lib/libfuseprivate.a")
19 + set_property(
20 + TARGET libsquashfuse
21 + PROPERTY INTERFACE_LINK_LIBRARIES ${squashfuse_LIBRARIES}
22 + )
23 + include_directories(${squashfuse_INCLUDE_DIRS})
24 endif()
27 diff --git a/src/appimagetool.c b/src/appimagetool.c
28 index 6b37419..23425e7 100644
29 --- a/src/appimagetool.c
30 +++ b/src/appimagetool.c
31 @@ -38,7 +38,7 @@
32 #include <argp.h>
34 #include <fcntl.h>
35 -#include "squashfuse.h"
36 +#include <squashfuse.h>
38 #include <sys/types.h>
39 #include <sys/stat.h>
40 @@ -96,7 +96,7 @@ static void die(const char *msg) {
43 /* Function that prints the contents of a squashfs file
44 -* using libsquashfuse (#include "squashfuse.h") */
45 +* using libsquashfuse (#include <squashfuse.h>) */
46 int sfs_ls(char* image) {
47 sqfs_err err = SQFS_OK;
48 sqfs_traverse trv;
49 diff --git a/src/appimagetoolnoglib.c b/src/appimagetoolnoglib.c
50 index f900e76..ffa87f8 100644
51 --- a/src/appimagetoolnoglib.c
52 +++ b/src/appimagetoolnoglib.c
53 @@ -3,7 +3,7 @@
55 #include <stdlib.h>
56 #include <fcntl.h>
57 -#include "squashfuse.h"
58 +#include <squashfuse.h>
60 #include <sys/types.h>
61 #include <sys/stat.h>
62 @@ -118,7 +118,7 @@ int is_regular_file(const char *path)
65 /* Function that prints the contents of a squashfs file
66 - * using libsquashfuse (#include "squashfuse.h") */
67 + * using libsquashfuse (#include <squashfuse.h>) */
68 int sfs_ls(char* image) {
69 sqfs_err err = SQFS_OK;
70 sqfs_traverse trv;
71 diff --git a/src/runtime.c b/src/runtime.c
72 index bada3af..70a642b 100644
73 --- a/src/runtime.c
74 +++ b/src/runtime.c
75 @@ -29,7 +29,7 @@
77 #define _GNU_SOURCE
79 -#include "squashfuse.h"
80 +#include <squashfuse.h>
81 #include <squashfs_fs.h>
82 #include <nonstd.h>