Gaming/pcsx2: rework iso compression
This commit is contained in:
parent
6628a2d181
commit
1fad825868
1 changed files with 18 additions and 15 deletions
|
|
@ -5,22 +5,25 @@
|
|||
}: let
|
||||
ps2-isos = pkgs.symlinkJoin {
|
||||
name = "ps2-isos";
|
||||
paths = [
|
||||
(pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/Redump/Sony%20-%20PlayStation%202/007%20-%20Nightfire%20%28USA%29.zip";
|
||||
hash = "sha256-66Ey0SqC3Tk02Af+xR6rpxYSkO0n83NWYPCt4M3CUWo=";
|
||||
})
|
||||
];
|
||||
paths =
|
||||
lib.lists.forEach [
|
||||
(pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/Redump/Sony%20-%20PlayStation%202/007%20-%20Nightfire%20%28USA%29.zip";
|
||||
hash = "sha256-66Ey0SqC3Tk02Af+xR6rpxYSkO0n83NWYPCt4M3CUWo=";
|
||||
})
|
||||
]
|
||||
compress;
|
||||
};
|
||||
|
||||
compressed-ps2-isos = pkgs.runCommand "compressed-ps2-isos" {} ''
|
||||
mkdir $out
|
||||
cd ${ps2-isos}
|
||||
for file in ./*
|
||||
do
|
||||
${pkgs.mame-tools}/bin/chdman createdvd -i "$file" -o "$out/''${file%.iso}.chd"
|
||||
done
|
||||
'';
|
||||
compress = iso:
|
||||
pkgs.runCommand "compressed-ps2-isos" {} ''
|
||||
mkdir $out
|
||||
cd ${iso}
|
||||
for file in ./*
|
||||
do
|
||||
${pkgs.mame-tools}/bin/chdman createdvd -i "$file" -o "$out/''${file%.iso}.chd"
|
||||
done
|
||||
'';
|
||||
|
||||
pcsx2-bios = pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/Redump/Sony%20-%20PlayStation%202%20-%20BIOS%20Images/ps2-0200a-20040614.zip";
|
||||
|
|
@ -32,7 +35,7 @@ in {
|
|||
packages = with pkgs; [
|
||||
pcsx2
|
||||
];
|
||||
file."Games/Isos/PS2".source = compressed-ps2-isos;
|
||||
file."Games/Isos/PS2".source = ps2-isos;
|
||||
};
|
||||
xdg.configFile = {
|
||||
#PCSX2 silently overwrites the symlink so I need to force it's creation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue