Commit 1cbde519 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

diskscan: fix `cmake-4` build failure

Without the change the https://hydra.nixos.org/build/310538459

:

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

ZHF: #457852
Co-authored-by: default avatardotlambda <github@dotlambda.de>
parent 4b468ff9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  ncurses,
  zlib,
@@ -18,6 +19,16 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-2y1ncPg9OKxqImBN5O5kXrTsuwZ/Cg/8exS7lWyZY1c=";
  };

  patches = [
    # cmake-4 support:
    #   https://github.com/baruch/diskscan/pull/77
    (fetchpatch {
      name = "cmake-4.patch";
      url = "https://github.com/baruch/diskscan/commit/6e342469dcab32be7a33109a4d394141d5c905b5.patch";
      hash = "sha256-05ctYPmGWTJRUc4aN35fvb0ITwIZlQdIweH7tSQ0RjA=";
    })
  ];

  buildInputs = [
    ncurses
    zlib