summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2026-05-19 13:26:21 +0300
committerEfraim Flashner <efraim@flashner.co.il>2026-05-19 13:26:21 +0300
commite6d44c6bcf27e641925ee290d3388d3cb62925e8 (patch)
treecf1d6b068ec5b57a79536b5a0eb65ecf12600a87 /gnu
parente1e44912dc054453a7ec2ff51df751d9aa50f63c (diff)
gnu: rusty: Format with guix style.
* gnu/packages/rust-apps.scm (rusty): Format package with guix style. Change-Id: I4d1cbb41b6b5c2ca2e19cb6cac71dcec238a57e3
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/rust-apps.scm71
1 files changed, 35 insertions, 36 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 424ff086202..e8f082828a8 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3113,44 +3113,43 @@ touchscreen devices.")
3113 (license license:expat))) 3113 (license license:expat)))
3114 3114
3115(define-public rusty 3115(define-public rusty
3116 (package 3116 (package
3117 (name "rusty") 3117 (name "rusty")
3118 (version "0.5.0") 3118 (version "0.5.0")
3119 (source 3119 (source
3120 (origin 3120 (origin
3121 (method git-fetch) 3121 (method git-fetch)
3122 (uri (git-reference 3122 (uri (git-reference
3123 (url "https://github.com/PLC-lang/rusty") 3123 (url "https://github.com/PLC-lang/rusty")
3124 (commit (string-append "v" version)))) 3124 (commit (string-append "v" version))))
3125 (file-name (git-file-name name version)) 3125 (file-name (git-file-name name version))
3126 (sha256 3126 (sha256
3127 (base32 "1a0gv247kzclya5i78mgxav21aqrya4bv5sylh7idnzhn1ap37nb")))) 3127 (base32 "1a0gv247kzclya5i78mgxav21aqrya4bv5sylh7idnzhn1ap37nb"))))
3128 (build-system cargo-build-system) 3128 (build-system cargo-build-system)
3129 (arguments 3129 (arguments
3130 (list 3130 (list
3131 #:install-source? #f 3131 #:install-source? #f
3132 #:cargo-install-paths 3132 #:cargo-install-paths ''("compiler/plc_driver")
3133 ''("compiler/plc_driver") 3133 #:phases
3134 #:phases 3134 #~(modify-phases %standard-phases
3135 #~(modify-phases %standard-phases 3135 (add-after 'unpack 'set-cc
3136 (add-after 'unpack 'set-cc 3136 ;; Tests assume `cc' is available in PATH, but Guix does not
3137 ;; Tests assume `cc' is available in PATH, but Guix does not 3137 ;; provide that with the `gcc' or `clang' packages.
3138 ;; provide that with the `gcc' or `clang' packages. 3138 (lambda _
3139 (lambda _ 3139 (substitute* '("tests/integration/build_description_tests.rs"
3140 (substitute* '("tests/integration/build_description_tests.rs" 3140 "compiler/plc_driver/src/cli.rs"
3141 "compiler/plc_driver/src/cli.rs" 3141 "xtask/src/task.rs" "xtask/src/main.rs")
3142 "xtask/src/task.rs" "xtask/src/main.rs") 3142 (("([=\"])cc(\")" _ prefix suffix)
3143 (("([=\"])cc(\")" _ prefix suffix) 3143 (string-append prefix #$(cc-for-target) suffix))))))))
3144 (string-append prefix #$(cc-for-target) suffix)))))))) 3144 (inputs (cons* libffi llvm-21
3145 (inputs (cons* libffi llvm-21 3145 (cargo-inputs 'rusty)))
3146 (cargo-inputs 'rusty))) 3146 (home-page "https://plc-lang.github.io/rusty/")
3147 (home-page "https://plc-lang.github.io/rusty/") 3147 (synopsis "IEC 61131-3 structured text compiler")
3148 (synopsis "IEC 61131-3 structured text compiler") 3148 (description
3149 (description 3149 "RuSTy is a IEC 61131-3 @acronym{ST, Structured Text} compiler written in
3150 "RuSTy is a IEC 61131-3 @acronym{ST, Structured Text} compiler written in
3151Rust. It compiles ST down to native machine code, targeting most 3150Rust. It compiles ST down to native machine code, targeting most
3152@code{llvm}-supported targets.") 3151@code{llvm}-supported targets.")
3153 (license (list license:lgpl3 license:gpl3)))) 3152 (license (list license:lgpl3 license:gpl3))))
3154 3153
3155(define-public rust-swc 3154(define-public rust-swc
3156 (package 3155 (package