From fee4a9514dd18e9c9809c1ab1a58cf446c95f123 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Wed, 3 Sep 2025 21:05:23 +0200 Subject: [PATCH] feat(environment): add package->application-environment for single-app environments --- modules/ruther/environment.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/ruther/environment.scm b/modules/ruther/environment.scm index 2221f149446a15148b213ee76f91b9557e239056..8c9a03ba2a1445f9a5f48e9f588dc776c7695971 100644 --- a/modules/ruther/environment.scm +++ b/modules/ruther/environment.scm @@ -13,7 +13,8 @@ #:export (make-environment make-interpreted-environment make-python-environment - make-guile-environment)) + make-guile-environment + package->application-environment)) ;; Makes a package that uses the given environment, and wraps the binaries in it. ;; TODO: replace the paths (only in text files!!! not in binaries...) in all extra-paths files, @@ -146,3 +147,9 @@ python "guile" guile-packages)) + +(define* (package->application-environment + application) + (make-environment + (package->manifest application) + #:name (string-append(package-name application) "environment")))