nixos_config/home/packages/ps3dec/package.nix

49 lines
1021 B
Nix

{
lib,
cmake,
fetchFromGitHub,
mbedtls_2,
perl,
python3,
stdenv,
### Ninja
withNinja ? false
ninja,
}:
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 stdenv.withNinja ninja;
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.mit;
# Technically it was posted to the 3k3y forums without a license file,
# So technically it's probably "All Rights Reserved" but.... Meh whatever
maintainers = with lib.maintainers; [ whovian9369 ];
};
}