28 lines
632 B
Nix
Raw Normal View History

2025-03-18 18:20:13 +01:00
{pkgs, ...}:
with pkgs;
stdenv.mkDerivation {
pname = "scripts";
version = "1";
src = ./bin;
nativeBuildInputs = [makeWrapper];
installPhase = ''
mkdir -p $out/bin
# move scripts to bin
mv ./* $out/bin
# Fix shebangs for scripts
patchShebangs $out/bin
# 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
2025-03-31 17:39:11 +02:00
wrapProgram $out/bin/iso2chd \
--prefix PATH : ${lib.makeBinPath [mame-tools]}
2025-03-18 18:20:13 +01:00
'';
}