isle-portable: use writeText instead of passAsFile (#498506)

This commit is contained in:
Jo 2026-03-13 10:57:11 +00:00 committed by GitHub
commit bf53e8551e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,7 @@
callPackage,
requireFile,
runCommand,
writeText,
makeBinaryWrapper,
symlinkJoin,
isle-portable-unwrapped ? callPackage ./unwrapped.nix { },
@ -37,17 +38,7 @@ symlinkJoin (
) iniWithDisk;
# Make a config ini file
iniFile =
runCommand "isle.ini"
{
passAsFile = [ "iniFile" ];
# Set the ISO path.
iniFile = lib.generators.toINI { } quotedIni;
}
''
cp "$iniFilePath" "$out"
'';
iniFile = writeText "isle.ini" (lib.generators.toINI { } quotedIni);
in
{
inherit (isle-portable-unwrapped) version;