diff --git a/pkgs/by-name/bi/bicgl/package.nix b/pkgs/by-name/bi/bicgl/package.nix index 7c7327b31c5e..76231816053c 100644 --- a/pkgs/by-name/bi/bicgl/package.nix +++ b/pkgs/by-name/bi/bicgl/package.nix @@ -35,6 +35,11 @@ stdenv.mkDerivation rec { "-DBICPL_DIR=${bicpl}/lib" ]; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)" + ''; + meta = with lib; { homepage = "https://github.com/${owner}/bicgl"; description = "Brain Imaging Centre graphics library"; diff --git a/pkgs/by-name/co/conglomerate/package.nix b/pkgs/by-name/co/conglomerate/package.nix index 5c4fc39a8ddc..a200d9fe49c9 100644 --- a/pkgs/by-name/co/conglomerate/package.nix +++ b/pkgs/by-name/co/conglomerate/package.nix @@ -47,6 +47,11 @@ stdenv.mkDerivation { "-DBICPL_DIR=${bicpl}/lib" ]; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" + ''; + postFixup = '' for p in $out/bin/*; do wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${