toybox: use structuredAttrs instead of passAsFile

This commit is contained in:
Stefan Frijters
2026-03-23 17:32:19 +01:00
parent fdc7b8f7b3
commit 551dfcc97e
+4 -2
View File
@@ -43,7 +43,6 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = "patchShebangs .";
inherit extraConfig;
passAsFile = [ "extraConfig" ];
configurePhase = ''
make ${
@@ -57,7 +56,8 @@ stdenv.mkDerivation (finalAttrs: {
"defconfig"
}
cat $extraConfigPath .config > .config-
printf "%s" "$extraConfig" > .config-
cat .config >> .config-
mv .config- .config
make oldconfig
@@ -87,6 +87,8 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_CFLAGS_COMPILE = "-Wno-error";
__structuredAttrs = true;
meta = {
description = "Lightweight implementation of some Unix command line utilities";
homepage = "https://landley.net/toybox/";