gnu: rust-analyzer: Move to rust.scm.
* gnu/packages/rust-apps.scm (rust-analyzer): Move ... * gnu/packages/rust.scm (rust-analyzer): ... to here. Change-Id: I24db3731370f6e798b919409a32abec4a115c913
parent
bc13c8c87b
commit
bb108d7efd
|
@ -44,7 +44,6 @@
|
||||||
(define-module (gnu packages rust-apps)
|
(define-module (gnu packages rust-apps)
|
||||||
#:use-module (guix build-system cargo)
|
#:use-module (guix build-system cargo)
|
||||||
#:use-module (guix build-system pyproject)
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system trivial)
|
|
||||||
#:use-module (guix deprecation)
|
#:use-module (guix deprecation)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
|
@ -81,7 +80,6 @@
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages rust)
|
|
||||||
#:use-module (gnu packages sqlite)
|
#:use-module (gnu packages sqlite)
|
||||||
#:use-module (gnu packages tls)
|
#:use-module (gnu packages tls)
|
||||||
#:use-module (gnu packages version-control)
|
#:use-module (gnu packages version-control)
|
||||||
|
@ -1866,32 +1864,6 @@ work. This allows the client to be used in a much simpler way, with the
|
||||||
background agent taking care of maintaining the necessary state.")
|
background agent taking care of maintaining the necessary state.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public rust-analyzer
|
|
||||||
(package
|
|
||||||
(name "rust-analyzer")
|
|
||||||
(version (package-version rust))
|
|
||||||
(source #f)
|
|
||||||
(build-system trivial-build-system)
|
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
#:modules '((guix build utils))
|
|
||||||
#:builder
|
|
||||||
#~(begin
|
|
||||||
(use-modules (guix build utils))
|
|
||||||
(let ((rust (assoc-ref %build-inputs "rust")))
|
|
||||||
(install-file (string-append rust "/bin/rust-analyzer")
|
|
||||||
(string-append #$output "/bin"))
|
|
||||||
(copy-recursively (string-append rust "/share")
|
|
||||||
(string-append #$output "/share"))))))
|
|
||||||
(inputs
|
|
||||||
(list (list rust "tools")))
|
|
||||||
(home-page "https://rust-analyzer.github.io/")
|
|
||||||
(synopsis "Experimental Rust compiler front-end for IDEs")
|
|
||||||
(description "Rust-analyzer is a modular compiler frontend for the Rust
|
|
||||||
language. It is a part of a larger rls-2.0 effort to create excellent IDE
|
|
||||||
support for Rust.")
|
|
||||||
(license (list license:expat license:asl2.0))))
|
|
||||||
|
|
||||||
;;; Note: keep in sync with our current Rust/Cargo version.
|
;;; Note: keep in sync with our current Rust/Cargo version.
|
||||||
(define-public rust-cargo-c
|
(define-public rust-cargo-c
|
||||||
(package
|
(package
|
||||||
|
|
|
@ -55,12 +55,14 @@
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (guix build-system cargo)
|
#:use-module (guix build-system cargo)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (guix build-system trivial)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module ((guix build utils) #:select (alist-replace))
|
#:use-module ((guix build utils) #:select (alist-replace))
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (srfi srfi-26))
|
#:use-module (srfi srfi-26))
|
||||||
|
|
||||||
|
@ -1037,3 +1039,29 @@ safety and thread safety guarantees.")
|
||||||
(native-inputs (cons* `("gdb" ,gdb/pinned)
|
(native-inputs (cons* `("gdb" ,gdb/pinned)
|
||||||
`("procps" ,procps)
|
`("procps" ,procps)
|
||||||
(package-native-inputs base-rust))))))
|
(package-native-inputs base-rust))))))
|
||||||
|
|
||||||
|
(define-public rust-analyzer
|
||||||
|
(package
|
||||||
|
(name "rust-analyzer")
|
||||||
|
(version (package-version rust))
|
||||||
|
(source #f)
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:modules '((guix build utils))
|
||||||
|
#:builder
|
||||||
|
#~(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let ((rust (assoc-ref %build-inputs "rust")))
|
||||||
|
(install-file (string-append rust "/bin/rust-analyzer")
|
||||||
|
(string-append #$output "/bin"))
|
||||||
|
(copy-recursively (string-append rust "/share")
|
||||||
|
(string-append #$output "/share"))))))
|
||||||
|
(inputs
|
||||||
|
(list (list rust "tools")))
|
||||||
|
(home-page "https://rust-analyzer.github.io/")
|
||||||
|
(synopsis "Experimental Rust compiler front-end for IDEs")
|
||||||
|
(description "Rust-analyzer is a modular compiler frontend for the Rust
|
||||||
|
language. It is a part of a larger rls-2.0 effort to create excellent IDE
|
||||||
|
support for Rust.")
|
||||||
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
Reference in New Issue