Add `ps3dec` to `home.packages`

This commit is contained in:
Whovian NTSN 2024-05-18 05:44:36 -04:00
parent 3edea2bd31
commit 5bfa7afb82
3 changed files with 51 additions and 0 deletions

View File

@ -116,6 +116,7 @@
packages.x86_64-linux = {
irdkit = pkgs.callPackage ./home/packages/irdkit/package.nix {};
ird_tools = pkgs.callPackage ./home/packages/ird_tools/package.nix {};
ps3dec = pkgs.callPackage ./home/packages/ps3dec/package.nix {};
# rom-properties = callPackage ./home/packages/rom-properties/package.nix {};
};
};

View File

@ -0,0 +1,48 @@
{
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 ];
};
}

View File

@ -11,6 +11,7 @@ let
my_packages = {
irdkit = callPackage ./packages/irdkit/package.nix {};
ird_tools = callPackage ./packages/ird_tools/package.nix {};
ps3dec = callPackage ./home/packages/ps3dec/package.nix {};
# rom-properties = callPackage ./packages/rom-properties/package.nix {};
};
callPackage = pkgs.callPackage;
@ -110,6 +111,7 @@ in
my_packages.irdkit
my_packages.ird_tools
my_packages.ps3dec
# my_packages.rom-properties
agenix.packages.${system}.default