apfs-fuse: fix cmake 4 compatibility
This commit is contained in:
18
pkgs/by-name/ap/apfs-fuse/cmake-v4.patch
Normal file
18
pkgs/by-name/ap/apfs-fuse/cmake-v4.patch
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
From 523ef46031f0d805a651d95e3b193f73acc824ef Mon Sep 17 00:00:00 2001
|
||||||
|
From: Skoh <101289702+SkohTV@users.noreply.github.com>
|
||||||
|
Date: Fri, 10 Oct 2025 13:53:13 -0400
|
||||||
|
Subject: [PATCH] Increase cmake_minimum_required: 3.0 -> 3.10
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 03acf26..84370f0 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-cmake_minimum_required(VERSION 3.0)
|
||||||
|
+cmake_minimum_required(VERSION 3.0...3.10)
|
||||||
|
# set(CMAKE_C_COMPILER "clang")
|
||||||
|
# set(CMAKE_CXX_COMPILER "clang++")
|
||||||
@@ -22,6 +22,12 @@ stdenv.mkDerivation {
|
|||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# fix for CMake v4
|
||||||
|
# https://github.com/sgan81/apfs-fuse/pull/211
|
||||||
|
./cmake-v4.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
--replace "/usr/local/lib/libosxfuse.dylib" "fuse"
|
--replace "/usr/local/lib/libosxfuse.dylib" "fuse"
|
||||||
|
|||||||
Reference in New Issue
Block a user