1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 meson,
6 ninja,
7}:
8
9stdenv.mkDerivation rec {
10 version = "1.1.1";
11 pname = "pfsshell";
12
13 src = fetchFromGitHub {
14 owner = "uyjulian";
15 repo = "pfsshell";
16 rev = "v${version}";
17 sha256 = "0cr91al3knsbfim75rzl7rxdsglcc144x0nizn7q4jx5cad3zbn8";
18 };
19
20 nativeBuildInputs = [
21 meson
22 ninja
23 ];
24
25 # Build errors since 1.1.1 when format hardening is enabled:
26 # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
27 hardeningDisable = [ "format" ];
28
29 meta = with lib; {
30 inherit (src.meta) homepage;
31 description = "PFS (PlayStation File System) shell for POSIX-based systems";
32 platforms = platforms.unix;
33 license = with licenses; [
34 gpl2Only # the pfsshell software itself
35 afl20 # APA, PFS, and iomanX libraries which are compiled together with this package
36 ];
37 maintainers = with maintainers; [ makefu ];
38 mainProgram = "pfsshell";
39 };
40}