aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-10-30gnu: cloud-utils: Update to 0.32....Christopher Baines
2020-10-30installer: Use UUIDs in the 'swap-devices' field....Ludovic Courtès
2020-10-30services: swap: Allow for UUIDs and file system labels....Ludovic Courtès
2020-10-30file-systems: Allow swap space lookup by UUID/label....Ludovic Courtès
2020-10-30gnu: r-calculus: Fix typo in home-page....zimoun
2020-10-30scripts: lint: Add '--exclude' option....zimoun
2020-10-30scripts: lint: Fix '--no-network' option....zimoun
2020-10-30nls: Update 'fr' translation of the manual.Julien Lepiller
2020-10-30gnu: tome4: Update to 1.7.0....Oleg Pykhalov
2020-10-29gnu: emacs-tramp: Update to 2.4.4.3....Nicolas Goaziou
2020-10-29nls: Update 'ru' translation of the manual.Julien Lepiller
2020-10-29gnu: dropbear: Update to 2020.81....Tobias Geerinckx-Rice
2020-10-29gnu: Update samtools to 1.11....Roel Janssen
2020-10-29gnu: Update bcftools to 1.11....Roel Janssen
2020-10-29gnu: Update htslib to 1.11....Roel Janssen
2020-10-29gnu: raspi-arm64-chainloader: Remove unnecessary internal copy-file call....Danny Milosavljevic
2020-10-29gnu: raspi-arm64-chainloader: End phase in #t....Danny Milosavljevic
2020-10-29gnu: raspi-arm-chainloader: Install arm_chainloader.bin....Danny Milosavljevic
2020-10-29gnu: raspi-arm64-chainloader: Install arm64.bin....Danny Milosavljevic
2020-10-29gnu: Add raspi-arm64-chainloader....Danny Milosavljevic
2020-10-29gnu: python-simpleaudio: Alsa-lib is not a native-input....Leo Famulari
2020-10-29gnu: raspi-arm-chainloader: Fix build....Danny Milosavljevic
2020-10-29gnu: kuserfeedback: Fix typo....Sébastien Lerique
2020-10-29gnu: Add raspi-arm-chainloader....Danny Milosavljevic
2020-10-29gnu: Add raspi-gpio....Danny Milosavljevic
2020-10-29gnu: Add bcm2835....Danny Milosavljevic
2020-10-29gnu: Add copyright line.Nicolas Goaziou
2020-10-29gnu: Add emacs-powershell....Adam
2020-10-29gnu: emacs-rg: Update to 2.0.2....Michael Rohleder
2020-10-29gnu: ruby: Update to 2.7.2....Ryan Prior
2020-10-28build/maven: Fix typo....Vagrant Cascadian
2020-10-28build/maven: fix-pom-dependencies: Fix typo....Vagrant Cascadian
2020-10-28build/maven: fix-pom-dependencies: Fix typo....Vagrant Cascadian
2020-10-28gnu: ganeti-luxid-service-type: Fix typo....Vagrant Cascadian
2020-10-28gnu: python-mujson: Fix typo....Vagrant Cascadian
2020-10-28gnu: python-scour: Fix typo....Vagrant Cascadian
2020-10-28gnu: altermime: Fix typo....Vagrant Cascadian
2020-10-28gnu: emacs-highlight-numbers: Fix typo....Vagrant Cascadian
2020-10-28gnu: python-django-sekizai: Fix typo....Vagrant Cascadian
2020-10-28gnu: rust-webpki-0.21: Fix typo....Vagrant Cascadian
2020-10-28gnu: rust-zstd-safe-2: Fix typo....Vagrant Cascadian
2020-10-28gnu: python-django-auth-ldap: Fix typo....Vagrant Cascadian
2020-10-29gnu: emacs-ivy-posframe: Fix hash....Oleg Pykhalov
2020-10-29gnu: zabbix-agentd, zabbix-server: Update to 5.2.0....Oleg Pykhalov
2020-10-28gnu: emacs-rust-mode: Update to 0.5.0....Michael Rohleder
2020-10-28gnu: emacs-nix-mode: Update to 1.4.5....Michael Rohleder
2020-10-28gnu: emacs-dockerfile-mode: Update to 1.3....Michael Rohleder
2020-10-28gnu: emacs-pfuture: Update to 1.9....Michael Rohleder
2020-10-28gnu: emacs-evil-matchit: Update to 2.3.9....Michael Rohleder
2020-10-28gnu: emacs-disable-mouse: Update to 0.3....Michael Rohleder
r exec ~a /run/current-system/profile/bin/bash --login'\n") pid) (info (G_ "or run 'sudo nsenter -a -t ~a' to get a shell into it.~%") pid) (newline (guix-warning-port))) (let* ((opts (parse-options (cdr (command-line)) %options)) (mappings (filter-map (match-lambda (('file-system-mapping . mapping) mapping) (_ #f)) opts)) (file-systems (filter-map (lambda (fs) (let ((flags (file-system-flags fs))) (and (or (not (memq 'bind-mount flags)) (file-exists? (file-system-device fs))) fs))) (append (map file-system-mapping->bind-mount mappings) (map spec->file-system '#$specs))))) (call-with-container file-systems (lambda () (setenv "HOME" "/root") (setenv "TMPDIR" "/tmp") (setenv "GUIX_NEW_SYSTEM" #$os) (for-each mkdir-p '("/run" "/bin" "/etc" "/home" "/var")) (primitive-load (string-append #$os "/boot"))) ;; A range of 65536 uid/gids is used to cover 16 bits worth of ;; users and groups, which is sufficient for most cases. ;; ;; See: http://www.freedesktop.org/software/systemd/man/systemd-nspawn.html#--private-users= #:host-uids 65536 #:namespaces (if #$shared-network? (delq 'net %namespaces) %namespaces) #:process-spawned-hook explain))))) (gexp->script "run-container" script))) (define* (eval/container exp #:key (mappings '()) (namespaces %namespaces) (guest-uid 0) (guest-gid 0)) "Evaluate EXP, a gexp, in a new process executing in separate namespaces as listed in NAMESPACES. Add MAPPINGS, a list of <file-system-mapping>, to the set of directories visible in the process's mount namespace. Inside the namespaces, run code as GUEST-UID and GUEST-GID. Return the process' exit status as a monadic value. This is useful to implement processes that, unlike derivations, are not entirely pure and need to access the outside world or to perform side effects." (mlet %store-monad ((lowered (lower-gexp exp))) (define inputs (cons (lowered-gexp-guile lowered) (lowered-gexp-inputs lowered))) (define items (append (append-map derivation-input-output-paths inputs) (lowered-gexp-sources lowered))) (mbegin %store-monad (built-derivations inputs) (mlet %store-monad ((closure ((store-lift requisites) items))) (return (call-with-container (map file-system-mapping->bind-mount (append (map (lambda (item) (file-system-mapping (source item) (target source))) closure) mappings)) (lambda () (apply execl (string-append (derivation-input-output-path (lowered-gexp-guile lowered)) "/bin/guile") "guile" (append (append-map (lambda (directory) `("-L" ,directory)) (lowered-gexp-load-path lowered)) (append-map (lambda (directory) `("-C" ,directory)) (lowered-gexp-load-compiled-path lowered)) (list "-c" (object->string (lowered-gexp-sexp lowered)))))) #:namespaces namespaces #:guest-uid guest-uid #:guest-gid guest-gid))))))