summaryrefslogtreecommitdiff
path: root/nonguix/utils.scm
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2026-03-22 18:05:40 +0800
committerHilton Chain <hako@ultrarare.space>2026-04-03 16:55:23 +0800
commit941b6c73aea2076b10ed4dc8620002c49f7ae49c (patch)
treef08b14eed1588001c453fb3092eb3926229af967 /nonguix/utils.scm
parent99d8256d03537de4bac6d29c722616aeda1ea1d7 (diff)
utils: package-with-alias: Base on the superseding mechanism.
* nonguix/utils.scm (package-with-alias) [properties]: Set superseded and supress-supersession-info?.
Diffstat (limited to 'nonguix/utils.scm')
-rw-r--r--nonguix/utils.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/nonguix/utils.scm b/nonguix/utils.scm
index 33d922e..bbb25f0 100644
--- a/nonguix/utils.scm
+++ b/nonguix/utils.scm
@@ -133,10 +133,13 @@ matches PRED."
(_ obj)))
(define (package-with-alias alias pkg)
- "Return a copy of package PKG called ALIAS."
+ "Return a copy of package PKG with name ALIAS."
(package
(inherit pkg)
- (name alias)))
+ (name alias)
+ (properties
+ `((superseded . ,pkg)
+ (supress-supersession-info? . #t)))))
;; Using a package here to support ‘guix refresh’.
(define %binary-source