diff --git a/home-manager/modules/scripts.nix b/home-manager/modules/scripts.nix index 952c8fc..aff3393 100644 --- a/home-manager/modules/scripts.nix +++ b/home-manager/modules/scripts.nix @@ -18,5 +18,13 @@ stdenv.mkDerivation { # Add dependencies to the runtime for my blog script wrapProgram $out/bin/blog \ --prefix PATH : ${lib.makeBinPath [ hugo rsync git ]} + + # 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/iso2chd \ + --prefix PATH : ${lib.makeBinPath [ mame-tools ]} ''; } diff --git a/home-manager/modules/scripts/cue2chd b/home-manager/modules/scripts/cue2chd index 14450f5..7b44d92 100755 --- a/home-manager/modules/scripts/cue2chd +++ b/home-manager/modules/scripts/cue2chd @@ -4,5 +4,5 @@ for File in *.cue do [ -f "$File" ] || continue chdman createcd -i "$File" -o "${File%.cue}.chd" - rm -v "$File" "${File%.cue}.bin" + rm -v "$File" "${File%.cue}"*.bin done