dislocker: fix build against CMake >= 4.0 (#449377)

This commit is contained in:
Sandro
2025-10-09 12:31:17 +00:00
committed by GitHub

View File

@@ -9,15 +9,15 @@
fuse, fuse,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "dislocker"; pname = "dislocker";
version = "0.7.3"; version = "0.7.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aorimn"; owner = "Aorimn";
repo = "dislocker"; repo = "dislocker";
rev = "v${version}"; tag = "v${finalAttrs.version}";
sha256 = "1ak68s1v5dwh8y2dy5zjybmrh0pnqralmyqzis67y21m87g47h2k"; hash = "sha256-U8BD3kE1CH+Mjh/7SlXG9gKY6/LyF9+ER5C3soNGZqo=";
}; };
patches = [ patches = [
@@ -28,8 +28,16 @@ stdenv.mkDerivation rec {
# #
# https://github.com/Aorimn/dislocker/pull/246 # https://github.com/Aorimn/dislocker/pull/246
(fetchpatch { (fetchpatch {
url = "https://github.com/Aorimn/dislocker/commit/7744f87c75fcfeeb414d0957771042b10fb64e62.diff"; name = "feat-support-the-latest-FUSE-on-macOS.patch";
sha256 = "0bpyccbbfjsidsrd2q9qylb95nvi8g3glb3jss7xmhywj86bhzr5"; url = "https://github.com/Aorimn/dislocker/commit/7744f87c75fcfeeb414d0957771042b10fb64e62.patch";
hash = "sha256-JX+4DJLcw9qP1nIs+sZDcduSFvU4YdGyblFLtxZj/i4=";
})
# fix compatibility with CMake (https://cmake.org/cmake/help/v4.0/command/cmake_minimum_required.html)
# https://github.com/Aorimn/dislocker/pull/346
(fetchpatch {
name = "cmake-raise-minimum-required-version-to-3.5.patch";
url = "https://github.com/Aorimn/dislocker/commit/337d05dc7447436539f2fb481eef0e528a000b66.patch";
hash = "sha256-6LTRjaZfyGS2BCdpcJy/qo0r8soXJSZqWjZRbaKvcQk=";
}) })
]; ];
@@ -37,16 +45,18 @@ stdenv.mkDerivation rec {
cmake cmake
pkg-config pkg-config
]; ];
buildInputs = [ buildInputs = [
fuse fuse
mbedtls_2 mbedtls_2
]; ];
meta = with lib; { meta = {
description = "Read BitLocker encrypted partitions in Linux"; description = "Read BitLocker encrypted partitions in Linux";
homepage = "https://github.com/aorimn/dislocker"; homepage = "https://github.com/Aorimn/dislocker";
license = licenses.gpl2Plus; changelog = "https://github.com/Aorimn/dislocker/raw/${finalAttrs.src.rev}/CHANGELOG.md";
maintainers = with maintainers; [ elitak ]; license = lib.licenses.gpl2Plus;
platforms = platforms.unix; maintainers = with lib.maintainers; [ elitak ];
platforms = lib.platforms.unix;
}; };
} })