Skip to content

Build failure: tic-80 (CMake 4 error) #452776

@Rhys-T

Description

@Rhys-T

Nixpkgs version

  • Unstable (25.11)

Steps to reproduce

nix build 'nixpkgs#tic-80'

or

nix-build '<nixpkgs>' -A tic-80

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/309187927

Relevant log output

[…]
-- Checking for module 'zlib'
--   Found zlib, version 1.3.1
-- Use system library: zlib
CMake Warning at cmake/zip.cmake:17 (message):
  System library kubazip not found
Call Stack (most recent call first):
  CMakeLists.txt:154 (include)


CMake Error at vendor/zip/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

See #445447, as well as the upstream issue nesbox/TIC-80#2823.

TIC-80's own CMakeLists.txt is fine. The problem is from the zip library it uses (submoduled as vendor/zip). That library's upstream actually bumped its CMake version several years ago, but the submodule is still on an even earlier commit.

System metadata

  • system: "x86_64-darwin"
  • host os: Darwin 24.5.0, macOS 15.5
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.31.2
  • channels(root): "nixpkgs"
  • nixpkgs: /nix/store/n4vf8ia28wa77g29cjmg5jn3516qp5qx-nixpkgs/nixpkgs

Notify maintainers

tic-80: @blinry


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

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions