diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-26 22:59:13 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-26 22:59:39 +0100 |
commit | 0842b49f440a66f2b9f2ccaf5e7470d131854393 (patch) | |
tree | 63097bf6016d7c4223edc006f288660ad92eb59a | |
parent | 444f93ebf651fc4a97e2ace05447c48ad247e3c4 (diff) |
gnu: exercism: Improve package.
* gnu/packages/education.scm (exercism): Apply G-expressions. Move all
inputs to native-inputs.
Change-Id: I9fc0956a5403abb5d1dc1adaad1c35f6089bb67d
-rw-r--r-- | gnu/packages/education.scm | 64 |
1 files changed, 35 insertions, 29 deletions
diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index b03066b663..18eb3e20ed 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -1121,36 +1121,41 @@ machine, and more.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "0shh84g7j977kn9kcm09rj3lz6a3y5qq9yvklsldgb9zvass5szd")) + (base32 "0shh84g7j977kn9kcm09rj3lz6a3y5qq9yvklsldgb9zvass5szd")) (patches (search-patches "exercism-disable-self-update.patch")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/exercism/cli/exercism" - #:unpack-path "github.com/exercism/cli" - #:install-source? #f - #:phases - (modify-phases %standard-phases - (add-after 'install 'install-completions - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (bash (string-append out "/etc/bash_completion.d/exercism")) - (fish (string-append - out "/share/fish/vendor_completions.d/exercism.fish")) - (zsh (string-append out "/share/zsh/site-functions/_exercism"))) - (mkdir-p (dirname bash)) - (with-output-to-file bash - (lambda () - (invoke (string-append out "/bin/exercism") "completion" "bash"))) - (mkdir-p (dirname fish)) - (with-output-to-file fish - (lambda () - (invoke (string-append out "/bin/exercism") "completion" "fish"))) - (mkdir-p (dirname zsh)) - (with-output-to-file zsh - (lambda () - (invoke (string-append out "/bin/exercism") "completion" "zsh"))))))))) - (inputs + (list + #:install-source? #f + #:import-path "github.com/exercism/cli/exercism" + #:unpack-path "github.com/exercism/cli" + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-completions + (lambda* (#:key outputs #:allow-other-keys) + (let* ((exercism (string-append #$output "/bin/exercism")) + (bash (string-append + #$output + "/etc/bash_completion.d/exercism")) + (fish (string-append + #$output + "/share/fish/vendor_completions.d/exercism.fish")) + (zsh (string-append + #$output + "/share/zsh/site-functions/_exercism"))) + (mkdir-p (dirname bash)) + (with-output-to-file bash + (lambda () + (invoke exercism "completion" "bash"))) + (mkdir-p (dirname fish)) + (with-output-to-file fish + (lambda () + (invoke exercism "completion" "fish"))) + (mkdir-p (dirname zsh)) + (with-output-to-file zsh + (lambda () + (invoke exercism "completion" "zsh"))))))))) + (native-inputs (list go-github-com-blang-semver go-github-com-spf13-cobra go-github-com-spf13-pflag @@ -1159,8 +1164,9 @@ machine, and more.") go-golang-org-x-text)) (home-page "https://exercism.org/") (synopsis "Mentored learning for programming languages") - (description "Commandline client for exercism.io, a free service providing -mentored learning for programming languages.") + (description + "Commandline client for exercism.io, a free service providing mentored +learning for programming languages.") (license license:expat))) (define-public mazo |