[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42173: [PATCH 2/2] services: nix: Fix sandbox.
From: |
Oleg Pykhalov |
Subject: |
bug#42173: [PATCH 2/2] services: nix: Fix sandbox. |
Date: |
Wed, 22 Jul 2020 22:38:14 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hi,
Ludovic Courtès <ludo@gnu.org> writes:
[…]
>> + (with-output-to-file "/etc/nix/nix.conf"
>> + (lambda _
>> + (format #t "sandbox = ~a~%" (if #$sandbox "true" "false"))
>> + (format #t "build-sandbox-paths = ~{~a ~}~%"
>> + (append (append-map (cut call-with-input-file <>
>> read)
>> + '#$(map references-file
>> + (list package)))
>> + '#$build-sandbox-paths))
>> + (for-each (cut display <>) '#$extra-config))))))))
>
> Actually I thought this would have to be addressed in the ‘nix’ package
> itself because this is where those store file names are captured. But
> maybe it’s OK to do it in the service. WDYT?
I think it's good enough for now to fix the issue. We could delete
prepending ‘build-sandbox-paths’ with ‘nix’ closure in future.
>> +(define %nix-os
>
> Pretty fun. :-)
Yea, :-).
Pushed to master as 4656180d5de1fef2846bea9af27ae509f32376ba
Oleg.
signature.asc
Description: PGP signature
- bug#42173: Nix on Guix System: can't update channels, (continued)
- bug#42173: Nix on Guix System: can't update channels, Zhu Zihao via web, 2020/07/15
- bug#42173: Nix on Guix System: can't update channels, Ludovic Courtès, 2020/07/16
- bug#42173: Nix on Guix System: can't update channels, Ludovic Courtès, 2020/07/21
- bug#42173: [PATCH 1/2] services: base: Export references-file., Oleg Pykhalov, 2020/07/22
- bug#42173: [PATCH 2/2] services: nix: Fix sandbox., Oleg Pykhalov, 2020/07/22
- bug#42173: [PATCH 2/2] services: nix: Fix sandbox., Ludovic Courtès, 2020/07/22
- bug#42173: [PATCH 2/2] services: nix: Fix sandbox.,
Oleg Pykhalov <=
bug#42173: Nix on Guix System: can't update channels, Zhu Zihao via web, 2020/07/21