fix: explict use nativeBuildInputs

This commit is contained in:
Lars Sjöström 2025-06-11 22:24:38 +02:00
parent 34c83b7c3b
commit bd002f2d25
No known key found for this signature in database

View file

@ -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