From 752ff19e21571a6242b6d1aaf249d4ef510e00bf Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 7 Dec 2024 16:00:29 +0100 Subject: [PATCH] fix: switch to writeClosure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit writeReferencesToFile has been removed from nixpkgs… Signed-off-by: Raito Bezarius --- modules/outputs/initramfs.nix | 2 +- pkgs/initramfs-peek/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/outputs/initramfs.nix b/modules/outputs/initramfs.nix index b1e0ea8..6d5d473 100644 --- a/modules/outputs/initramfs.nix +++ b/modules/outputs/initramfs.nix @@ -54,7 +54,7 @@ in mount -t sysfs none /sys ${busybox}/bin/sh ''; - refs = pkgs.writeReferencesToFile busybox; + refs = pkgs.writeClosure [ busybox ]; in runCommand "initramfs.cpio" {} '' cat << SPECIALS | ${gen_init_cpio}/bin/gen_init_cpio /dev/stdin > out dir /proc 0755 0 0 diff --git a/pkgs/initramfs-peek/default.nix b/pkgs/initramfs-peek/default.nix index 39067cb..86f8e18 100644 --- a/pkgs/initramfs-peek/default.nix +++ b/pkgs/initramfs-peek/default.nix @@ -3,7 +3,7 @@ , pkgsBuildBuild , runCommand , cpio -, writeReferencesToFile +, writeClosure , writeScript } : let @@ -18,7 +18,7 @@ let mount -t sysfs none /sys ${busybox}/bin/sh ''; - refs = writeReferencesToFile busybox; + refs = writeClosure [ busybox ]; in runCommand "initramfs.cpio" { } '' cat << SPECIALS | ${gen_init_cpio}/bin/gen_init_cpio /dev/stdin > out dir /proc 0755 0 0