From bd002f2d25aacfe61eec16f4a9ca42ede60f06f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Sj=C3=B6strom?= <lars@radicore.se> Date: Wed, 11 Jun 2025 22:24:38 +0200 Subject: [PATCH] fix: explict use nativeBuildInputs --- pkgs/rootfs/mkrootfs.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/rootfs/mkrootfs.nix b/pkgs/rootfs/mkrootfs.nix index bdc0ba1..4818478 100644 --- a/pkgs/rootfs/mkrootfs.nix +++ b/pkgs/rootfs/mkrootfs.nix @@ -12,7 +12,9 @@ runCommand "patos-rootfs" { inherit version; - buildInputs = with pkgs;[ + nativeBuildInputs = with pkgs; [ + stdenv.cc + patchelf glibc binutils ]; @@ -222,7 +224,7 @@ find $out -type f -executable -exec patchelf --set-interpreter /lib/ld-linux-x86 patchelf --remove-rpath $out/usr/lib/ld-linux-x86-64.so.2 # strip binaries -find $out -type f -executable -exec strip {} \; +find $out -type f -executable -exec $STRIP {} \; find $out -type d -exec chmod 755 {} \; # install kernel modules