From 4b5ac6b226bdf34387ded002647c44a0c63587f8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 1 Oct 2022 23:46:12 +0300 Subject: gnu: exercism: Install shell completions. * gnu/packages/education.scm (exercism)[arguments]: Add a phase to build and install shell completions. --- gnu/packages/education.scm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'gnu/packages/education.scm') diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index a2607087e5..f16324a2c6 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -1065,7 +1065,28 @@ (define-public exercism (arguments `(#:import-path "github.com/exercism/cli/exercism" #:unpack-path "github.com/exercism/cli" - #:install-source? #f)) + #: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 `(("github.com/blang/semver" ,go-github-com-blang-semver) ("github.com/spf13/cobra" ,go-github-com-spf13-cobra) -- cgit v1.2.3 From 04516a7adffd23ecbe23a718625b3adcefe1f63e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 1 Oct 2022 23:47:06 +0300 Subject: gnu: exercism: Update home-page. * gnu/packages/education.scm (exercism)[home-page]: Follow redirect. --- gnu/packages/education.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/education.scm') diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index f16324a2c6..9e082b00c0 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -1094,7 +1094,7 @@ (define-public exercism ("github.com/spf13/viper" ,go-github-com-spf13-viper) ("golang.org/x/net" ,go-golang-org-x-net) ("golang.org/x/text" ,go-golang-org-x-text))) - (home-page "https://exercism.io") + (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.") -- cgit v1.2.3 From 821cd5651a29c668a070625e8ce45fe164fe9527 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 1 Oct 2022 23:48:02 +0300 Subject: gnu: exercism: Remove input labels. * gnu/packages/education.scm (exercism)[inputs]: Remove input labels. --- gnu/packages/education.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gnu/packages/education.scm') diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 9e082b00c0..0d4719f3ce 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -1088,12 +1088,12 @@ (define-public exercism (lambda () (invoke (string-append out "/bin/exercism") "completion" "zsh"))))))))) (inputs - `(("github.com/blang/semver" ,go-github-com-blang-semver) - ("github.com/spf13/cobra" ,go-github-com-spf13-cobra) - ("github.com/spf13/pflag" ,go-github-com-spf13-pflag) - ("github.com/spf13/viper" ,go-github-com-spf13-viper) - ("golang.org/x/net" ,go-golang-org-x-net) - ("golang.org/x/text" ,go-golang-org-x-text))) + (list go-github-com-blang-semver + go-github-com-spf13-cobra + go-github-com-spf13-pflag + go-github-com-spf13-viper + go-golang-org-x-net + 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 -- cgit v1.2.3 From 4459c05af73e2eb299e07a5991c1e689e8b8921d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 9 Oct 2022 21:19:27 +0200 Subject: gnu: fet: Update to 6.6.2. * gnu/packages/education.scm (fet): Update to 6.6.2. --- gnu/packages/education.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/education.scm') diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 0d4719f3ce..bf5a0f4007 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -582,7 +582,7 @@ (define-public openboard (define-public fet (package (name "fet") - (version "6.5.7") + (version "6.6.2") (source (origin (method url-fetch) @@ -591,7 +591,7 @@ (define-public fet (list (string-append directory base) (string-append directory "old/" base)))) (sha256 - (base32 "08j5i3dlp290fz142ljn68j8ssi5f3kabs0dd75ig33kms30hjs7")))) + (base32 "0w3fp367r8gx35qmfcx9v8z2lrwfm0fjqbadyk3lhwf28gb1csxr")))) (build-system gnu-build-system) (arguments (list -- cgit v1.2.3