diff --git a/radix/packages/package-management.scm b/radix/packages/package-management.scm new file mode 100644 index 0000000..c7ec85c --- /dev/null +++ b/radix/packages/package-management.scm @@ -0,0 +1,16 @@ +(define-module (radix packages package-management) + #:use-module (gnu packages package-management) + #:use-module (guix build-system trivial) + #:use-module (guix gexp) + #:use-module (guix packages)) + +(define-public (current-system-guix) + (let* ((current-system-guix + (readlink "/run/current-system/profile/bin/guix")) + (current-guix-profile + (dirname (dirname current-system-guix)))) + (package/inherit guix + (build-system trivial-build-system) + (arguments (list #:builder + #~(symlink #$current-guix-profile + #$output))))))