{ runCommand, configfile }: # taken from /pkgs/os-specific/linux/kernel/manual-config.nix runCommand "config.nix" { } '' echo "{" > "$out" while IFS='=' read key val; do [ "x''${key#CONFIG_}" != "x$key" ] || continue no_firstquote="''${val#\"}"; echo ' "'"$key"'" = "'"''${no_firstquote%\"}"'";' >> "$out" done < "${configfile}" echo "}" >> $out ''