~ruther/guix-exprs

fee4a9514dd18e9c9809c1ab1a58cf446c95f123 — Rutherther 12 days ago 926f950 main
feat(environment): add package->application-environment for single-app environments
1 files changed, 8 insertions(+), 1 deletions(-)

M modules/ruther/environment.scm
M modules/ruther/environment.scm => modules/ruther/environment.scm +8 -1
@@ 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")))