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