[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55424] [PATCH 005/602] utils: Add a %guix-source-root-directory pro
From: |
Maxim Cournoyer |
Subject: |
[bug#55424] [PATCH 005/602] utils: Add a %guix-source-root-directory procedure. |
Date: |
Sun, 15 May 2022 00:36:32 -0400 |
* guix/utils.scm (%guix-source-root-directory): New procedure.
---
guix/utils.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm
index e169624ee6..37b2e29800 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,7 @@ (define-module (guix utils)
substitute-keyword-arguments
ensure-keyword-arguments
+ %guix-source-root-directory
current-source-directory
nix-system->gnu-triplet
@@ -1031,6 +1032,10 @@ (define (read! bv start n)
;;; Source location.
;;;
+(define (%guix-source-root-directory)
+ "Return the source root directory of the Guix found in %load-path."
+ (dirname (absolute-dirname "guix/packages.scm")))
+
(define absolute-dirname
;; Memoize to avoid repeated 'stat' storms from 'search-path'.
(mlambda (file)
--
2.36.0
- [bug#55424] [PATCH 000/602] Purge Python 2 packages, Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 001/602] packages: Fix typo in package-superseded doc., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 004/602] utils: Add a 'delete-expression' procedure., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 002/602] etc/committer: Prefix (sxml xpath) symbols to avoid name conflict., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 003/602] etc/committer: Teach it how to commit package removal., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 005/602] utils: Add a %guix-source-root-directory procedure.,
Maxim Cournoyer <=
- [bug#55424] [PATCH 007/602] gnu: Remove python-pytest-runner-2., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 033/602] gnu: Remove python2-nose-timer., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 006/602] diagnostics: Fix typo about 0-indexed COL in location., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 008/602] gnu: Remove python2-langkit., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 009/602] gnu: Remove graphios., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 034/602] gnu: Remove python2-pytest-catchlog., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 084/602] gnu: Remove python2-pygpgme., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 080/602] gnu: Remove python2-tmx., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 092/602] gnu: Remove python2-tegaki-recognize., Maxim Cournoyer, 2022/05/15
- [bug#55424] [PATCH 096/602] gnu: Remove python2-mailmanclient., Maxim Cournoyer, 2022/05/15