summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/pf/pfsshell/package.nix
blob: b1356ef647af7af2bffcd8449f9b4c075b139aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  cmake,
  lib,
  stdenv,
  fetchFromGitHub,
  fuse,
  meson,
  ninja,
  pkg-config,
}:

stdenv.mkDerivation (finalAttrs: {
  version = "1.1.1-unstable-2025-07-13";
  pname = "pfsshell";

  src = fetchFromGitHub {
    owner = "ps2homebrew";
    repo = "pfsshell";
    rev = "8192de3907a05bb1844afcb1ae490179a38d4ed6";
    fetchSubmodules = true;
    hash = "sha256-drQNnCIqwM+Lnix5LewkD2ov8G6Mbu60xVKQKvCFbPY=";
  };

  nativeBuildInputs = [
    fuse
    meson
    ninja
    pkg-config
  ];

  mesonFlags = [ (lib.mesonBool "enable_pfsfuse" true) ];

  meta = {
    inherit (finalAttrs.src.meta) homepage;
    description = "PFS (PlayStation File System) shell for POSIX-based systems";
    platforms = lib.platforms.unix;
    license = with lib.licenses; [
      gpl2Only # the pfsshell software itself
      afl20 # APA, PFS, and iomanX libraries which are compiled together with this package
    ];
    maintainers = with lib.maintainers; [ makefu ];
    mainProgram = "pfsshell";
  };
})