diff --git a/modules/home-manager/scripts/bin/iso2chd b/modules/home-manager/scripts/bin/iso2chd new file mode 100755 index 0000000..41c8e81 --- /dev/null +++ b/modules/home-manager/scripts/bin/iso2chd @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +for File in *.iso; do + [ -f "$File" ] || continue + chdman createdvd -i "$File" -o "${File%.iso}.chd" + rm -v "$File" +done diff --git a/modules/home-manager/scripts/default.nix b/modules/home-manager/scripts/default.nix index 1ef856d..20ab53c 100644 --- a/modules/home-manager/scripts/default.nix +++ b/modules/home-manager/scripts/default.nix @@ -19,5 +19,9 @@ with pkgs; # Add dependencies to the runtime for my cue2chd script wrapProgram $out/bin/cue2chd \ --prefix PATH : ${lib.makeBinPath [mame-tools]} + + # Add dependencies to the runtime for my iso2chd script + wrapProgram $out/bin/cue2chd \ + --prefix PATH : ${lib.makeBinPath [mame-tools]} ''; }