From 5ad1aef951ef79b5de554cef650198a91f56105d Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 26 Jan 2024 11:39:46 +0100 Subject: [PATCH] pkgs.ps3dec: init --- 5pkgs/ps3dec/default.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 5pkgs/ps3dec/default.nix diff --git a/5pkgs/ps3dec/default.nix b/5pkgs/ps3dec/default.nix new file mode 100644 index 0000000..0b40ded --- /dev/null +++ b/5pkgs/ps3dec/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub , mbedtls, ninja, cmake }: +stdenv.mkDerivation rec { + pname = "ps3dec"; + version = "20181216"; + + src = fetchFromGitHub { + owner = "al3xtjames"; + repo = "PS3Dec"; + rev = "7d1d27f"; + hash = "sha256-dgH9xMOAqDhfG2dWE+oX2wNqrcsSO8dMTo5f3ETSxTw="; + }; + + nativeBuildInputs = [ cmake ninja ]; + buildInputs = [ mbedtls ]; + installPhase = '' + install -D Release/PS3Dec $out/bin/PS3Dec + ''; + + meta = { + description = "ISO encryptor/decryptor for PS3 disc images"; + homepage = "https://github.com/al3xtjames/PS3Dec"; + license = lib.licenses.free; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ makefu ]; + mainProgram = "PS3Dec"; + }; +}