* [bug#32186] [PATCH] gnu: Add emacs-rust-mode.
@ 2018-07-17 11:24 Rouby Pierre-Antoine
2018-07-17 14:30 ` Kei Kebreau
0 siblings, 1 reply; 6+ messages in thread
From: Rouby Pierre-Antoine @ 2018-07-17 11:24 UTC (permalink / raw)
To: 32186; +Cc: Rouby Pierre-Antoine
* gnu/packages/emacs.scm: New variable.
---
gnu/packages/emacs.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index c6c7a1df4..68780aea8 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -11410,3 +11410,33 @@ siblings and friends. This visual overview can also be used to browse your
entries. You can think of entries as nodes in a mind map, or pages in a
wiki.")
(license license:expat)))
+
+(define-public emacs-rust-mode
+ (let ((commit "64b4a2450e4d4c47f6307851c9b2598cd2254d68")
+ (revision "0"))
+ (package
+ (name "emacs-rust-mode")
+ (version (git-version "0.3.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/rust-lang/rust-mode")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pbz36lljgb7bdgx3h3g0pq1nss1kvn8mhk1l3mknsmynd6w4nd8"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "sh" "run_rust_emacs_tests.sh"))))))
+ (home-page "https://github.com/rust-lang/rust-mode")
+ (synopsis "Major Emacs mode for editing Rust source code")
+ (description
+ "This package provide major Emacs mode for editing Rust source code.")
+ (license (list license:expat
+ license:asl2.0)))))
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#32186] [PATCH] gnu: Add emacs-rust-mode.
2018-07-17 11:24 [bug#32186] [PATCH] gnu: Add emacs-rust-mode Rouby Pierre-Antoine
@ 2018-07-17 14:30 ` Kei Kebreau
2018-07-18 8:01 ` Pierre-Antoine Rouby
2018-07-18 9:39 ` Rouby Pierre-Antoine
0 siblings, 2 replies; 6+ messages in thread
From: Kei Kebreau @ 2018-07-17 14:30 UTC (permalink / raw)
To: Rouby Pierre-Antoine; +Cc: 32186
[-- Attachment #1: Type: text/plain, Size: 2170 bytes --]
Hello Rouby,
> * gnu/packages/emacs.scm: New variable.
> ---
> gnu/packages/emacs.scm | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
> index c6c7a1df4..68780aea8 100644
> --- a/gnu/packages/emacs.scm
> +++ b/gnu/packages/emacs.scm
> @@ -11410,3 +11410,33 @@ siblings and friends. This visual overview can also be used to browse your
> entries. You can think of entries as nodes in a mind map, or pages in a
> wiki.")
> (license license:expat)))
> +
> +(define-public emacs-rust-mode
> + (let ((commit "64b4a2450e4d4c47f6307851c9b2598cd2254d68")
> + (revision "0"))
> + (package
> + (name "emacs-rust-mode")
> + (version (git-version "0.3.0" revision commit))
> + (source (origin
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://github.com/rust-lang/rust-mode")
> + (commit commit)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0pbz36lljgb7bdgx3h3g0pq1nss1kvn8mhk1l3mknsmynd6w4nd8"))))
I'm guessing that you chose this snapshot because of the additional bug
fixes? If so, please include that information in a comment.
> + (build-system emacs-build-system)
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (replace 'check
> + (lambda _
> + (invoke "sh" "run_rust_emacs_tests.sh"))))))
> + (home-page "https://github.com/rust-lang/rust-mode")
> + (synopsis "Major Emacs mode for editing Rust source code")
> + (description
> + "This package provide major Emacs mode for editing Rust source code.")
Here I would change "provide" to "provides a", as it reads more naturally.
> + (license (list license:expat
> + license:asl2.0)))))
Also, don't forget to add a copyright line at the top of
gnu/packages/emacs.scm for yourself! Other than those small things, this
patch looks and works fine. Could you send an updated patch?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#32186] [PATCH] gnu: Add emacs-rust-mode.
2018-07-17 14:30 ` Kei Kebreau
@ 2018-07-18 8:01 ` Pierre-Antoine Rouby
2018-07-18 9:39 ` Rouby Pierre-Antoine
1 sibling, 0 replies; 6+ messages in thread
From: Pierre-Antoine Rouby @ 2018-07-18 8:01 UTC (permalink / raw)
To: Kei Kebreau; +Cc: 32186
Hi Kei,
> From: "Kei Kebreau" <kkebreau@posteo.net>
>
> I'm guessing that you chose this snapshot because of the additional bug
> fixes? If so, please include that information in a comment.
Yes, the last release have 1,5 years old, lot of bug are fix since the
last release.
>
>> + (license (list license:expat
>> + license:asl2.0)))))
>
> Also, don't forget to add a copyright line at the top of
> gnu/packages/emacs.scm for yourself! Other than those small things, this
> patch looks and works fine. Could you send an updated patch?
No problem, I can send new patch soon.
--
Pierre-Antoine Rouby
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#32186] [PATCH] gnu: Add emacs-rust-mode.
2018-07-17 14:30 ` Kei Kebreau
2018-07-18 8:01 ` Pierre-Antoine Rouby
@ 2018-07-18 9:39 ` Rouby Pierre-Antoine
2018-07-18 15:43 ` Kei Kebreau
1 sibling, 1 reply; 6+ messages in thread
From: Rouby Pierre-Antoine @ 2018-07-18 9:39 UTC (permalink / raw)
To: kkebreau; +Cc: 32186, Rouby Pierre-Antoine
* gnu/packages/emacs.scm (emacs-rust-mode): New variable.
---
gnu/packages/emacs.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index aae634146..f044aa2a2 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -37,6 +37,7 @@
;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
;;; Copyright © 2018 Jack Hill <jackhill@jackhill.us>
+;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -11519,3 +11520,36 @@ and 'text viewing modes' respectively.")
(description "This package provides an Emacs major mode for editing AsciiDoc
files. It focuses on highlighting the document to improve readability.")
(license license:gpl2+)))
+
+(define-public emacs-rust-mode
+ (let ((commit
+ ;; Last release are old (2016), use more recent commit to get bug
+ ;; fixes.
+ "64b4a2450e4d4c47f6307851c9b2598cd2254d68")
+ (revision "0"))
+ (package
+ (name "emacs-rust-mode")
+ (version (git-version "0.3.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/rust-lang/rust-mode")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pbz36lljgb7bdgx3h3g0pq1nss1kvn8mhk1l3mknsmynd6w4nd8"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "sh" "run_rust_emacs_tests.sh"))))))
+ (home-page "https://github.com/rust-lang/rust-mode")
+ (synopsis "Major Emacs mode for editing Rust source code")
+ (description "This package provide a major Emacs mode for editing Rust
+source code.")
+ (license (list license:expat
+ license:asl2.0)))))
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#32186] [PATCH] gnu: Add emacs-rust-mode.
2018-07-18 9:39 ` Rouby Pierre-Antoine
@ 2018-07-18 15:43 ` Kei Kebreau
2018-07-19 9:28 ` bug#32186: " Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Kei Kebreau @ 2018-07-18 15:43 UTC (permalink / raw)
To: Rouby Pierre-Antoine; +Cc: 32186
[-- Attachment #1: Type: text/plain, Size: 2464 bytes --]
Rouby Pierre-Antoine <pierre-antoine.rouby@inria.fr> writes:
> * gnu/packages/emacs.scm (emacs-rust-mode): New variable.
> ---
> gnu/packages/emacs.scm | 34 ++++++++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
>
> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
> index aae634146..f044aa2a2 100644
> --- a/gnu/packages/emacs.scm
> +++ b/gnu/packages/emacs.scm
> @@ -37,6 +37,7 @@
> ;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
> ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
> ;;; Copyright © 2018 Jack Hill <jackhill@jackhill.us>
> +;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -11519,3 +11520,36 @@ and 'text viewing modes' respectively.")
> (description "This package provides an Emacs major mode for editing AsciiDoc
> files. It focuses on highlighting the document to improve readability.")
> (license license:gpl2+)))
> +
> +(define-public emacs-rust-mode
> + (let ((commit
> + ;; Last release are old (2016), use more recent commit to get bug
> + ;; fixes.
> + "64b4a2450e4d4c47f6307851c9b2598cd2254d68")
> + (revision "0"))
> + (package
> + (name "emacs-rust-mode")
> + (version (git-version "0.3.0" revision commit))
> + (source (origin
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://github.com/rust-lang/rust-mode")
> + (commit commit)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0pbz36lljgb7bdgx3h3g0pq1nss1kvn8mhk1l3mknsmynd6w4nd8"))))
> + (build-system emacs-build-system)
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (replace 'check
> + (lambda _
> + (invoke "sh" "run_rust_emacs_tests.sh"))))))
> + (home-page "https://github.com/rust-lang/rust-mode")
> + (synopsis "Major Emacs mode for editing Rust source code")
> + (description "This package provide a major Emacs mode for editing Rust
> +source code.")
> + (license (list license:expat
> + license:asl2.0)))))
Thanks for the patch! Pushed to master as
661e8a62f700f9bead5f40fd6e45bdf5091a462d.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#32186: [PATCH] gnu: Add emacs-rust-mode.
2018-07-18 15:43 ` Kei Kebreau
@ 2018-07-19 9:28 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-07-19 9:28 UTC (permalink / raw)
To: Kei Kebreau; +Cc: 32186-done, Rouby Pierre-Antoine
Kei Kebreau <kkebreau@posteo.net> skribis:
> Rouby Pierre-Antoine <pierre-antoine.rouby@inria.fr> writes:
>
>> * gnu/packages/emacs.scm (emacs-rust-mode): New variable.
>> ---
>> gnu/packages/emacs.scm | 34 ++++++++++++++++++++++++++++++++++
>> 1 file changed, 34 insertions(+)
>>
>> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
>> index aae634146..f044aa2a2 100644
>> --- a/gnu/packages/emacs.scm
>> +++ b/gnu/packages/emacs.scm
>> @@ -37,6 +37,7 @@
>> ;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
>> ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
>> ;;; Copyright © 2018 Jack Hill <jackhill@jackhill.us>
>> +;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
>> ;;;
>> ;;; This file is part of GNU Guix.
>> ;;;
>> @@ -11519,3 +11520,36 @@ and 'text viewing modes' respectively.")
>> (description "This package provides an Emacs major mode for editing AsciiDoc
>> files. It focuses on highlighting the document to improve readability.")
>> (license license:gpl2+)))
>> +
>> +(define-public emacs-rust-mode
>> + (let ((commit
>> + ;; Last release are old (2016), use more recent commit to get bug
>> + ;; fixes.
>> + "64b4a2450e4d4c47f6307851c9b2598cd2254d68")
>> + (revision "0"))
>> + (package
>> + (name "emacs-rust-mode")
>> + (version (git-version "0.3.0" revision commit))
>> + (source (origin
>> + (method git-fetch)
>> + (uri
>> + (git-reference
>> + (url "https://github.com/rust-lang/rust-mode")
>> + (commit commit)))
>> + (file-name (git-file-name name version))
>> + (sha256
>> + (base32
>> + "0pbz36lljgb7bdgx3h3g0pq1nss1kvn8mhk1l3mknsmynd6w4nd8"))))
>> + (build-system emacs-build-system)
>> + (arguments
>> + `(#:phases
>> + (modify-phases %standard-phases
>> + (replace 'check
>> + (lambda _
>> + (invoke "sh" "run_rust_emacs_tests.sh"))))))
>> + (home-page "https://github.com/rust-lang/rust-mode")
>> + (synopsis "Major Emacs mode for editing Rust source code")
>> + (description "This package provide a major Emacs mode for editing Rust
>> +source code.")
>> + (license (list license:expat
>> + license:asl2.0)))))
>
> Thanks for the patch! Pushed to master as
> 661e8a62f700f9bead5f40fd6e45bdf5091a462d.
And closed now, thanks. :-)
Ludo'.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-07-19 9:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 11:24 [bug#32186] [PATCH] gnu: Add emacs-rust-mode Rouby Pierre-Antoine
2018-07-17 14:30 ` Kei Kebreau
2018-07-18 8:01 ` Pierre-Antoine Rouby
2018-07-18 9:39 ` Rouby Pierre-Antoine
2018-07-18 15:43 ` Kei Kebreau
2018-07-19 9:28 ` bug#32186: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).