diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-05-29 21:49:46 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-05-31 22:37:47 +0900 |
| commit | b27fc9416bd87c9e27ffc1f1772f767bbd873545 (patch) | |
| tree | 7c510a9ad7d1ffe9112f318436ca5fa928daa601 /gnu/packages/cmake.scm | |
| parent | 70c477574d00ccc5a4e925ec6d4046b1eccdc087 (diff) | |
gnu: Add cmake-minimal-4.
* gnu/packages/cmake.scm (cmake-minimal-4): New variable.
Change-Id: Ida2275d200699e494d8ff7325f2c456435e913b6
Diffstat (limited to 'gnu/packages/cmake.scm')
| -rw-r--r-- | gnu/packages/cmake.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index dbbcbfaebe5..4a8526f469e 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm | |||
| @@ -362,6 +362,44 @@ and workspaces that can be used in the compiler environment of your choice.") | |||
| 362 | cmake-minimal-cross | 362 | cmake-minimal-cross |
| 363 | cmake-bootstrap))))) | 363 | cmake-bootstrap))))) |
| 364 | 364 | ||
| 365 | (define-public cmake-minimal-4 | ||
| 366 | (package | ||
| 367 | (inherit cmake-minimal) | ||
| 368 | (version "4.3.3") | ||
| 369 | (source | ||
| 370 | (origin | ||
| 371 | (inherit (package-source cmake-minimal)) | ||
| 372 | (method url-fetch) | ||
| 373 | (uri (string-append "https://cmake.org/files/v" | ||
| 374 | (version-major+minor version) | ||
| 375 | "/cmake-" version ".tar.gz")) | ||
| 376 | (snippet | ||
| 377 | (match (origin-snippet (package-source cmake-minimal)) | ||
| 378 | (('begin ('define 'preserved-files ('quote x)) | ||
| 379 | rest ...) | ||
| 380 | `(begin | ||
| 381 | (define preserved-files | ||
| 382 | ',(cons* | ||
| 383 | "Utilities/cmelf" | ||
| 384 | "Utilities/cmlibarchive/libarchive/archive_parse_date.c" | ||
| 385 | x)) | ||
| 386 | ,@rest)))) | ||
| 387 | (sha256 | ||
| 388 | (base32 | ||
| 389 | "11dvr50smd28vysw7a5k6pjanfrqjql96nghnrxqgwpd8ixbp96b")))) | ||
| 390 | (arguments | ||
| 391 | (substitute-keyword-arguments arguments | ||
| 392 | ((#:phases phases '%standard-phases) | ||
| 393 | #~(modify-phases #$phases | ||
| 394 | (replace 'delete-help-documentation | ||
| 395 | (lambda _ | ||
| 396 | (delete-file-recursively | ||
| 397 | (string-append #$output | ||
| 398 | "/share/cmake-" | ||
| 399 | #$(version-major+minor | ||
| 400 | (package-version this-package)) | ||
| 401 | "/Help")))))))))) | ||
| 402 | |||
| 365 | ;;; The "user-facing" CMake, now with manuals and HTML documentation. | 403 | ;;; The "user-facing" CMake, now with manuals and HTML documentation. |
| 366 | (define-public cmake | 404 | (define-public cmake |
| 367 | (package | 405 | (package |
