mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
83 lines
2.4 KiB
Diff
83 lines
2.4 KiB
Diff
Submodule lib/libappimage contains modified content
|
|
diff --git a/lib/libappimage/cmake/dependencies.cmake b/lib/libappimage/cmake/dependencies.cmake
|
|
index 8d96484..c7b17a1 100644
|
|
--- a/lib/libappimage/cmake/dependencies.cmake
|
|
+++ b/lib/libappimage/cmake/dependencies.cmake
|
|
@@ -91,9 +91,18 @@ if(NOT USE_SYSTEM_SQUASHFUSE)
|
|
INCLUDE_DIRS "<SOURCE_DIR>"
|
|
)
|
|
else()
|
|
- message(STATUS "Using system squashfuse")
|
|
+ message(STATUS "Using system squashfsfuse from ${SQUASHFUSE}")
|
|
|
|
- import_pkgconfig_target(TARGET_NAME libsquashfuse PKGCONFIG_TARGET squashfuse)
|
|
+ add_library(libsquashfuse INTERFACE IMPORTED GLOBAL)
|
|
+
|
|
+ set(squashfuse_INCLUDE_DIRS "${SQUASHFUSE}/include")
|
|
+ set(squashfuse_LIBRARIES "${SQUASHFUSE}/lib/libsquashfuse.a;${SQUASHFUSE}/lib/libsquashfuse_ll.a;${SQUASHFUSE}/lib/libfuseprivate.a")
|
|
+
|
|
+ set_property(
|
|
+ TARGET libsquashfuse
|
|
+ PROPERTY INTERFACE_LINK_LIBRARIES ${squashfuse_LIBRARIES}
|
|
+ )
|
|
+ include_directories(${squashfuse_INCLUDE_DIRS})
|
|
endif()
|
|
|
|
|
|
diff --git a/src/appimagetool.c b/src/appimagetool.c
|
|
index 6b37419..23425e7 100644
|
|
--- a/src/appimagetool.c
|
|
+++ b/src/appimagetool.c
|
|
@@ -38,7 +38,7 @@
|
|
#include <argp.h>
|
|
|
|
#include <fcntl.h>
|
|
-#include "squashfuse.h"
|
|
+#include <squashfuse.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
@@ -96,7 +96,7 @@ static void die(const char *msg) {
|
|
}
|
|
|
|
/* Function that prints the contents of a squashfs file
|
|
-* using libsquashfuse (#include "squashfuse.h") */
|
|
+* using libsquashfuse (#include <squashfuse.h>) */
|
|
int sfs_ls(char* image) {
|
|
sqfs_err err = SQFS_OK;
|
|
sqfs_traverse trv;
|
|
diff --git a/src/appimagetoolnoglib.c b/src/appimagetoolnoglib.c
|
|
index f900e76..ffa87f8 100644
|
|
--- a/src/appimagetoolnoglib.c
|
|
+++ b/src/appimagetoolnoglib.c
|
|
@@ -3,7 +3,7 @@
|
|
|
|
#include <stdlib.h>
|
|
#include <fcntl.h>
|
|
-#include "squashfuse.h"
|
|
+#include <squashfuse.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
@@ -118,7 +118,7 @@ int is_regular_file(const char *path)
|
|
}
|
|
|
|
/* Function that prints the contents of a squashfs file
|
|
- * using libsquashfuse (#include "squashfuse.h") */
|
|
+ * using libsquashfuse (#include <squashfuse.h>) */
|
|
int sfs_ls(char* image) {
|
|
sqfs_err err = SQFS_OK;
|
|
sqfs_traverse trv;
|
|
diff --git a/src/runtime.c b/src/runtime.c
|
|
index bada3af..70a642b 100644
|
|
--- a/src/runtime.c
|
|
+++ b/src/runtime.c
|
|
@@ -29,7 +29,7 @@
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
-#include "squashfuse.h"
|
|
+#include <squashfuse.h>
|
|
#include <squashfs_fs.h>
|
|
#include <nonstd.h>
|