package cmake-source { description = "CMake source tree"; exclude = true; version# = "4.4.4"; output = remoteGitHubRelease { suffix = "Kitware/CMake"; tag = "v"+version; name = "cmake-"+version+".tar.gz"; checksum = "I7vJROVzty0xtoWvDQzR5JpnEl-gO-1kXd-qIO2lWgj65Hgyd4kA08mM1wk5l8z3"; compress = gzip; }; patches = [ "disable-broken-tests-musl.patch", "disable-flaky-tests.patch", ]; } package cmake-early { description = "minimal CMake bootstrap build"; exclude = true; source = cmake-source; // expected to be writable in the copy made during bootstrap writable = true; chmod = true; exec = make { defaults = false; configureName = "/usr/src/cmake-early/bootstrap"; configure = { "prefix": "/system"; "parallel": jobsE; "--"; "-DCMAKE_USE_OPENSSL": "OFF"; }; // tested in full build check = nil; }; inputs = [ kernel-headers ]; } package cmake { description = "cross-platform, open-source build system"; website = "https://cmake.org"; anitya = 306; source = cmake-source; // test suite expects writable source tree writable = true; chmod = true; exec = cmake { early = true; make = true; cache = { "CMAKE_USE_OPENSSL": "OFF"; "CMake_TEST_NO_NETWORK": "ON"; "CMake_TEST_BOOTSTRAP": "OFF"; }; }; inputs = [ kernel-headers ]; }