2024-05-18 05:44:36 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
cmake,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mbedtls_2,
|
|
|
|
perl,
|
|
|
|
python3,
|
|
|
|
stdenv,
|
|
|
|
|
|
|
|
### Ninja
|
2024-05-18 05:54:39 -04:00
|
|
|
withNinja ? false,
|
|
|
|
ninja
|
2024-05-18 05:44:36 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ps3dec";
|
|
|
|
version = "unstable-2018-12-16";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "al3xtjames";
|
|
|
|
repo = "PS3Dec";
|
|
|
|
rev = "7d1d27f028aa86cd961a89795d0d19a9b3771446";
|
|
|
|
hash = "sha256-kvkkB7NclFfbqf3vqwFjKOFwHUz1X+KRCwGopN7YCis=";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
leaveDotGit = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
mbedtls_2
|
|
|
|
perl
|
|
|
|
python3
|
2024-05-18 05:54:39 -04:00
|
|
|
] ++ lib.optionals withNinja ninja;
|
2024-05-18 05:44:36 -04:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv Release/PS3Dec $out/bin/ps3dec
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "PS3Dec r5 source mirror";
|
|
|
|
homepage = "https://github.com/al3xtjames/PS3Dec";
|
2024-05-18 05:49:17 -04:00
|
|
|
license = lib.licenses.unfree;
|
2024-05-18 05:44:36 -04:00
|
|
|
# Technically it was posted to the 3k3y forums without a license file,
|
2024-05-18 05:49:17 -04:00
|
|
|
# So technically it's probably "All Rights Reserved"...
|
|
|
|
# I think that's how this works?
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2024-05-18 05:44:36 -04:00
|
|
|
};
|
|
|
|
}
|