nixos_config/home/packages/ps3dec/package.nix

50 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2024-05-18 05:44:36 -04:00
{
lib,
cmake,
fetchFromGitHub,
mbedtls_2,
perl,
python3,
stdenv,
### Ninja
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
] ++ 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";
license = lib.licenses.unfree;
2024-05-18 05:44:36 -04:00
# Technically it was posted to the 3k3y forums without a license file,
# 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
};
}