Unverified Commit bf53e855 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

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

parents 53910e3c 9b93def3
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -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;