Gaming/pcsx2: compress isos
This commit is contained in:
parent
bb9f35e960
commit
9bea86b4ff
1 changed files with 22 additions and 10 deletions
|
|
@ -1,10 +1,25 @@
|
|||
{pkgs, ...}: let
|
||||
ps2-isos = [
|
||||
(pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/Redump/Sony%20-%20PlayStation%202/007%20-%20Nightfire%20%28USA%29.zip";
|
||||
hash = "sha256-66Ey0SqC3Tk02Af+xR6rpxYSkO0n83NWYPCt4M3CUWo=";
|
||||
})
|
||||
];
|
||||
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=";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
compressed-ps2-isos = pkgs.runCommand "compressed-ps2-isos" {} ''
|
||||
mkdir $out
|
||||
cd ${ps2-isos}
|
||||
for file in ./*
|
||||
do
|
||||
echo $out
|
||||
echo $file
|
||||
${pkgs.pigz}/bin/pigz -9 -c -v "$file" > "$out/$file.gz"
|
||||
done
|
||||
'';
|
||||
|
||||
pcsx2-bios = pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/Redump/Sony%20-%20PlayStation%202%20-%20BIOS%20Images/ps2-0200a-20040614.zip";
|
||||
hash = "sha256-wMvswgmsKl+cJl49VlVW84tvU5Jzd+2dl07SOiUDtwA=";
|
||||
|
|
@ -15,10 +30,7 @@ in {
|
|||
packages = with pkgs; [
|
||||
pcsx2
|
||||
];
|
||||
file."Games/Isos/PS2".source = pkgs.symlinkJoin {
|
||||
name = "ps2-isos";
|
||||
paths = [ps2-isos];
|
||||
};
|
||||
file."Games/Isos/PS2".source = compressed-ps2-isos;
|
||||
};
|
||||
xdg.dataFile = {
|
||||
# I would prefer to use symlinkJoin like I do for the ISOs, but
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue