diff options
| author | Charles <charles@charje.net> | 2024-09-29 10:55:03 +0300 |
|---|---|---|
| committer | jgart <jgart@dismail.de> | 2024-10-20 01:12:54 -0500 |
| commit | 8ac0b82e35509aad84e92d6064809ae342d03cc4 (patch) | |
| tree | 9ef9023472db450e08d7bfb2ef55aa229116cc6c /gnu/packages/cmake.scm | |
| parent | 802ac190f7e5b9a3e321a328d753eb07d6979636 (diff) | |
gnu: Add corrosion.
* gnu/packages/cmake.scm (corrosion): New variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Change-Id: I0bb56889722128b9946af495fab05d39beaaf65a
Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'gnu/packages/cmake.scm')
| -rw-r--r-- | gnu/packages/cmake.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index 4466c4b91dd..8310dc55fa7 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | ;;; Copyright © 2021 Ricardo Wurmus <rekado@elephly.net> | 14 | ;;; Copyright © 2021 Ricardo Wurmus <rekado@elephly.net> |
| 15 | ;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com> | 15 | ;;; Copyright © 2024 John Kehayias <john.kehayias@protonmail.com> |
| 16 | ;;; Copyright © 2024 dan <i@dan.games> | 16 | ;;; Copyright © 2024 dan <i@dan.games> |
| 17 | ;;; Copyright © 2024 Charles <charles@charje.net> | ||
| 17 | ;;; | 18 | ;;; |
| 18 | ;;; This file is part of GNU Guix. | 19 | ;;; This file is part of GNU Guix. |
| 19 | ;;; | 20 | ;;; |
| @@ -54,6 +55,7 @@ | |||
| 54 | #:use-module (gnu packages kde-frameworks) | 55 | #:use-module (gnu packages kde-frameworks) |
| 55 | #:use-module (gnu packages libevent) | 56 | #:use-module (gnu packages libevent) |
| 56 | #:use-module (gnu packages ncurses) | 57 | #:use-module (gnu packages ncurses) |
| 58 | #:use-module (gnu packages rust) | ||
| 57 | #:use-module (gnu packages serialization) | 59 | #:use-module (gnu packages serialization) |
| 58 | #:use-module (gnu packages sphinx) | 60 | #:use-module (gnu packages sphinx) |
| 59 | #:use-module (gnu packages texinfo) | 61 | #:use-module (gnu packages texinfo) |
| @@ -440,6 +442,46 @@ and workspaces that can be used in the compiler environment of your choice.") | |||
| 440 | (search-paths | 442 | (search-paths |
| 441 | (package-native-search-paths cmake-minimal)))) | 443 | (package-native-search-paths cmake-minimal)))) |
| 442 | 444 | ||
| 445 | (define-public corrosion | ||
| 446 | (package | ||
| 447 | (name "corrosion") | ||
| 448 | (version "0.5.0") | ||
| 449 | (source (origin | ||
| 450 | (method git-fetch) | ||
| 451 | (uri (git-reference | ||
| 452 | (url "https://github.com/corrosion-rs/corrosion") | ||
| 453 | (commit (string-append "v" version)))) | ||
| 454 | (file-name (git-file-name name version)) | ||
| 455 | (sha256 | ||
| 456 | (base32 "1sm1jhdrqzp3f36f7grh900wp7pk9l1zim49hrk87ac6frfmg8xx")))) | ||
| 457 | (build-system cmake-build-system) | ||
| 458 | (arguments | ||
| 459 | (list | ||
| 460 | #:phases | ||
| 461 | #~(modify-phases %standard-phases | ||
| 462 | (replace 'check | ||
| 463 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 464 | (when tests? | ||
| 465 | (invoke "ctest" "-E" | ||
| 466 | (string-append | ||
| 467 | "(" (string-join | ||
| 468 | (list "cbindgen_rust2cpp" | ||
| 469 | "rustup_proxy" | ||
| 470 | "hostbuild" | ||
| 471 | "parse_target_triple") | ||
| 472 | "|") | ||
| 473 | ")")))))))) | ||
| 474 | (native-inputs | ||
| 475 | (list rust | ||
| 476 | `(,rust "cargo"))) | ||
| 477 | (home-page "https://corrosion-rs.github.io/corrosion/") | ||
| 478 | (synopsis "Tool for integrating Rust into an existing CMake project") | ||
| 479 | (description "Corrosion, formerly known as cmake-cargo, is a tool for | ||
| 480 | integrating Rust into an existing CMake project. Corrosion can automatically | ||
| 481 | import executables, static libraries, and dynamic libraries from a workspace | ||
| 482 | or package manifest (Cargo.toml file).") | ||
| 483 | (license license:expat))) | ||
| 484 | |||
| 443 | (define-public emacs-cmake-mode | 485 | (define-public emacs-cmake-mode |
| 444 | (package | 486 | (package |
| 445 | (inherit cmake) | 487 | (inherit cmake) |
