mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
isle-portable: use writeText instead of passAsFile (#498506)
This commit is contained in:
commit
bf53e8551e
1 changed files with 2 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue