pkgs.writeReferencesToFile is deprecated #60

Closed
opened 2024-06-11 16:04:41 +08:00 by sb10q · 0 comments
Owner

Needs this not-os patch:

diff --git a/base.nix b/base.nix
index 7eaee32..158ca20 100644
--- a/base.nix
+++ b/base.nix
@@ -84,7 +84,7 @@ with lib;
     };
     environment.etc = {
       "nix/nix.conf".source = pkgs.runCommand "nix.conf" {} ''
-        extraPaths=$(for i in $(cat ${pkgs.writeReferencesToFile pkgs.runtimeShell}); do if test -d $i; then echo $i; fi; done)
+        extraPaths=$(for i in $(cat ${pkgs.writeClosure [ pkgs.runtimeShell ]}); do if test -d $i; then echo $i; fi; done)
         cat > $out << EOF
         build-use-sandbox = true
         build-users-group = nixbld
Needs this not-os patch: ``` diff --git a/base.nix b/base.nix index 7eaee32..158ca20 100644 --- a/base.nix +++ b/base.nix @@ -84,7 +84,7 @@ with lib; }; environment.etc = { "nix/nix.conf".source = pkgs.runCommand "nix.conf" {} '' - extraPaths=$(for i in $(cat ${pkgs.writeReferencesToFile pkgs.runtimeShell}); do if test -d $i; then echo $i; fi; done) + extraPaths=$(for i in $(cat ${pkgs.writeClosure [ pkgs.runtimeShell ]}); do if test -d $i; then echo $i; fi; done) cat > $out << EOF build-use-sandbox = true build-users-group = nixbld ```
sb10q closed this issue 2024-07-03 13:05:22 +08:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-servo#60
No description provided.