about summary refs log tree commit diff
path: root/pkgs/tools/misc/pfsshell
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-10-21 13:21:00 +0200
committermakefu <github@syntax-fehler.de>2020-12-04 21:31:06 +0100
commit41bded79e7009c4d1b405b8d7c9b635685b36832 (patch)
tree1f72e19aa6ab0c0170c836068fc862497373334b /pkgs/tools/misc/pfsshell
parenta8de2e3fb51ee88e529a437f365d6dc89db62911 (diff)
pfsshell: init at 1.1.1
Diffstat (limited to 'pkgs/tools/misc/pfsshell')
-rw-r--r--pkgs/tools/misc/pfsshell/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pfsshell/default.nix b/pkgs/tools/misc/pfsshell/default.nix
new file mode 100644
index 0000000000000..e941cbd84c796
--- /dev/null
+++ b/pkgs/tools/misc/pfsshell/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, meson, ninja }:
+
+stdenv.mkDerivation rec {
+  version = "1.1.1";
+  pname = "pfsshell";
+
+  src = fetchFromGitHub {
+    owner = "uyjulian";
+    repo = "pfsshell";
+    rev = "v${version}";
+    sha256 = "0cr91al3knsbfim75rzl7rxdsglcc144x0nizn7q4jx5cad3zbn8";
+  };
+
+  nativeBuildInputs = [ meson ninja ];
+
+  # Build errors since 1.1.1 when format hardening is enabled:
+  #   cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
+  hardeningDisable = [ "format" ];
+
+  meta = with stdenv.lib; {
+    inherit (src.meta) homepage;
+    description = "PFS (PlayStation File System) shell for POSIX-based systems";
+    platforms = platforms.unix;
+    license = with licenses; [
+      gpl2Only # the pfsshell software itself
+      afl20    # APA, PFS, and iomanX libraries which are compiled together with this package
+    ];
+    maintainers = with maintainers; [ makefu ];
+  };
+}