dmsdos: fix cmake-4 fix

Without the change the build fails on `master` as
https://hydra.nixos.org/build/310538691:

    CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
      Compatibility with CMake < 3.5 has been removed from CMake.

ZHF: #457852
This commit is contained in:
Sergei Trofimovich 2025-11-04 21:30:46 +00:00
commit 5be3ff47f5

View file

@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
}:
@ -16,6 +17,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-oGVkDf1gFaSMRpvHq4GNLN8htBm/sYawZeVwiqQxjL8=";
};
patches = [
# cmake-4 support:
# https://github.com/sandsmark/dmsdos/pull/1
(fetchpatch {
name = "cmake-4.patch";
url = "https://github.com/sandsmark/dmsdos/commit/94076ab27800e9cba41ab05e6bb2edbb421154d9.patch";
hash = "sha256-olpnzPg/kbveUl0muwHKwI+DMGqXzxLrruFomf/SXjE=";
})
];
nativeBuildInputs = [
cmake
];