|
@@ -1,18 +1,26 @@
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
|
-index 8924974e8a..c60aac6a71 100644
|
|
|
+index 8924974e8a..a9cb615b3e 100644
|
|
|
--- a/Makefile.am
|
|
|
+++ b/Makefile.am
|
|
|
-@@ -306,6 +306,7 @@ MODULES = \
|
|
|
- guix/scripts/archive.scm \
|
|
|
- guix/scripts/import.scm \
|
|
|
- guix/scripts/package.scm \
|
|
|
-+ guix/parameters.scm \
|
|
|
- guix/scripts/locate.scm \
|
|
|
- guix/scripts/install.scm \
|
|
|
- guix/scripts/remove.scm \
|
|
|
+@@ -17,6 +17,7 @@
|
|
|
+ # Copyright © 2020, 2021, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
|
|
+ # Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
|
|
|
+ # Copyright © 2021 Andrew Tropin <andrew@trop.in>
|
|
|
++# Copyright © 2023 Sarthak Shah <shahsarthakw@gmail.com>
|
|
|
+ #
|
|
|
+ # This file is part of GNU Guix.
|
|
|
+ #
|
|
|
+@@ -114,6 +115,7 @@ MODULES = \
|
|
|
+ guix/repl.scm \
|
|
|
+ guix/rpm.scm \
|
|
|
+ guix/transformations.scm \
|
|
|
++ guix/parameters.scm \
|
|
|
+ guix/inferior.scm \
|
|
|
+ guix/describe.scm \
|
|
|
+ guix/quirks.scm \
|
|
|
diff --git a/guix/parameters.scm b/guix/parameters.scm
|
|
|
new file mode 100644
|
|
|
-index 0000000000..64a19fa4a8
|
|
|
+index 0000000000..24fe1cbac9
|
|
|
--- /dev/null
|
|
|
+++ b/guix/parameters.scm
|
|
|
@@ -0,0 +1,1180 @@
|
|
@@ -41,7 +49,6 @@ index 0000000000..64a19fa4a8
|
|
|
+ #:use-module (guix packages)
|
|
|
+ #:use-module (guix profiles)
|
|
|
+ #:use-module (guix records)
|
|
|
-+ #:use-module (guix transformations)
|
|
|
+ #:use-module (srfi srfi-1)
|
|
|
+ #:use-module (srfi srfi-13)
|
|
|
+ #:use-module (srfi srfi-26)
|
|
@@ -50,6 +57,7 @@ index 0000000000..64a19fa4a8
|
|
|
+ #:use-module (ice-9 hash-table)
|
|
|
+ #:use-module (ice-9 match)
|
|
|
+ #:use-module (ice-9 receive)
|
|
|
++ #:autoload (guix transformations) (options->transformation)
|
|
|
+ #:export (parameter-type
|
|
|
+ package-parameter
|
|
|
+ parameter-spec
|
|
@@ -1197,17 +1205,17 @@ index 0000000000..64a19fa4a8
|
|
|
+ (description "Toggle for tests")
|
|
|
+ (predicate #t)))
|
|
|
diff --git a/guix/transformations.scm b/guix/transformations.scm
|
|
|
-index 9cba6bedab..5a72e3feb4 100644
|
|
|
+index 9cba6bedab..f451d646f9 100644
|
|
|
--- a/guix/transformations.scm
|
|
|
+++ b/guix/transformations.scm
|
|
|
-@@ -24,6 +24,7 @@ (define-module (guix transformations)
|
|
|
- #:use-module (guix i18n)
|
|
|
- #:use-module (guix store)
|
|
|
- #:use-module (guix packages)
|
|
|
-+ #:use-module (guix parameters)
|
|
|
- #:use-module (guix build-system)
|
|
|
- #:use-module (guix profiles)
|
|
|
- #:use-module (guix diagnostics)
|
|
|
+@@ -36,6 +36,7 @@ (define-module (guix transformations)
|
|
|
+ #:autoload (guix cpu) (current-cpu
|
|
|
+ cpu->gcc-architecture
|
|
|
+ gcc-architecture->micro-architecture-level)
|
|
|
++ #:autoload (guix parameters) (package-parameter-alist parameterize-package)
|
|
|
+ #:use-module (guix utils)
|
|
|
+ #:use-module (guix memoization)
|
|
|
+ #:use-module (guix gexp)
|
|
|
@@ -354,6 +355,59 @@ (define rewrite
|
|
|
(rewrite obj)
|
|
|
obj)))
|
|
@@ -1286,7 +1294,7 @@ index 9cba6bedab..5a72e3feb4 100644
|
|
|
(parser 'with-c-toolchain))
|
|
|
(option '("tune") #f #t
|
|
|
diff --git a/guix/ui.scm b/guix/ui.scm
|
|
|
-index 6f2d4fe245..8c6d434386 100644
|
|
|
+index 6f2d4fe245..013091d458 100644
|
|
|
--- a/guix/ui.scm
|
|
|
+++ b/guix/ui.scm
|
|
|
@@ -19,6 +19,7 @@
|
|
@@ -1297,14 +1305,14 @@ index 6f2d4fe245..8c6d434386 100644
|
|
|
;;;
|
|
|
;;; This file is part of GNU Guix.
|
|
|
;;;
|
|
|
-@@ -45,6 +46,7 @@ (define-module (guix ui)
|
|
|
- #:use-module (guix store)
|
|
|
- #:use-module (guix config)
|
|
|
- #:use-module (guix packages)
|
|
|
-+ #:use-module (guix parameters)
|
|
|
- #:use-module (guix profiles)
|
|
|
- #:use-module (guix derivations)
|
|
|
- #:use-module (guix build-system)
|
|
|
+@@ -76,6 +77,7 @@ (define-module (guix ui)
|
|
|
+ #:use-module (ice-9 format)
|
|
|
+ #:use-module (ice-9 regex)
|
|
|
+ #:autoload (ice-9 popen) (open-pipe* close-pipe)
|
|
|
++ #:autoload (guix parameters) (all-spec-parameters-with-types package-parameter-spec)
|
|
|
+ #:autoload (system repl repl) (start-repl)
|
|
|
+ #:autoload (system repl debug) (make-debug stack->vector)
|
|
|
+ #:use-module (texinfo)
|
|
|
@@ -1607,7 +1609,11 @@ (define highlighting*
|
|
|
(outputs ; multiple outputs
|
|
|
(format port "outputs:~%~{~a~%~}"
|