Skip to content

Commit a2dbaa2

Browse files
committed
nixos-modules/microvm/store-disk: use writeClosure over writeReferencesToFile
1 parent 49d0333 commit a2dbaa2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos-modules/microvm/store-disk.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ let
1919
# "-Ededupe"
2020
]
2121
);
22+
23+
writeClosure = pkgs.writeClosure or pkgs.writeReferencesToFile;
24+
2225
in
2326
{
2427
options.microvm = with lib; {
@@ -65,7 +68,7 @@ in
6568
echo Copying a /nix/store
6669
mkdir store
6770
for d in $(sort -u ${
68-
lib.concatMapStringsSep " " pkgs.writeReferencesToFile (
71+
lib.concatMapStringsSep " " writeClosure (
6972
lib.optionals config.microvm.storeOnDisk (
7073
[ config.system.build.toplevel ]
7174
++

0 commit comments

Comments
 (0)