diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-02 23:54:15 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-05 01:04:08 +0100 |
| commit | 075941c266336d3a1e2ba34664b5a9addcd8dfd4 (patch) | |
| tree | c0a99b97e8f9610b4946829c7207a99eab7ab024 /gnu/packages | |
| parent | 293e99b9e0ec0f8849e032d53d8525713ebb77ea (diff) | |
gnu: mercurial: Fix, wrap and check hg binary.
* gnu/packages/version-control.scm (mercurial)[arguemnts]<#:phases>:
Add phase 'wrap and 'sanity-check.
Fixes: guix/guix#2451.
Change-Id: I71dc2d19ff8b5d2741cd2cb15b6a9687438e05b1
Reviewed-by: Simon Tournier <zimon.toutoune@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/version-control.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 47fde9ec168..ab079ceeb41 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2839,8 +2839,16 @@ execution of any hook written in any language before every commit.") "\"GUIX_PYTHONPATH\""))))) (add-before 'configure-check 'add-install-to-pythonpath (assoc-ref py:%standard-phases 'add-install-to-pythonpath)) + (add-after 'install 'wrap + (assoc-ref py:%standard-phases 'wrap)) (delete 'check) - (add-after 'install 'check #$mercurial-check-phase)))) + (add-after 'wrap 'check #$mercurial-check-phase) + (add-after 'check 'python-sanity-check + (lambda* (#:key inputs outputs #:allow-other-keys) + ((assoc-ref py:%standard-phases 'sanity-check) + #:inputs `(("sanity-check.py" . ,#$(default-sanity-check.py)) + ,@inputs) + #:outputs outputs)))))) (native-inputs (list python-docutils ;; The following inputs are only needed to run the tests. |
