-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken
Description
Nixpkgs version
- Unstable (25.11)
Describe the bug
It seems like the CMake configuration in the project’s CMakeLists.txt is outdated; the minimum required version declared in the file is too old for the version of CMake being used during the Nix build.
Steps to reproduce
I just ran nixos-rebuild boot --flake .# --sudo.
Expected behaviour
Successful build.
Screenshots
No response
Relevant log output
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/8750h4x3ngrmq3bw95b5rm4f28cqbyx6-source
source root is source/native/LinuxGlobalMenu
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/h276l6ljnavww5mlvfnaxmlh75xyvhz1-libdbm-headers.patch
patching file CMakeLists.txt
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/share/doc/dbm -DCMAKE_INSTALL_INFODIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/include -DCMAKE_INSTALL_SBINDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/dmypp1h4ldn0vfk3fi6yfyf5yxp9yz0k-gcc-wrapper-14.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/dmypp1h4ldn0vfk3fi6yfyf5yxp9yz0k-gcc-wrapper-14.3.0/bin/ranlib -DCMAKE_AR=/nix/store/dmypp1h4ldn0vfk3fi6yfyf5yxp9yz0k-gcc-wrapper-14.3.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/p724dq0lm7ka5s64mqxgq1b1lk3vy1qj-libdbm-251.25410.129
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.12.49, NixOS, 25.11 (Xantusia), 25.11.20251002.7df7ff7 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.28.5 - channels(root):
"nixos-24.05" - nixpkgs:
/nix/store/9v6qa656sq3xc58vkxslqy646p0ajj61-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken