summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/licenses.nix5
-rw-r--r--pkgs/tools/misc/pfsshell/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 37 insertions, 0 deletions
diff --git a/lib/licenses.nix b/lib/licenses.nix
index 850de29e7d13..6e7cd62515c1 100644
--- a/lib/licenses.nix
+++ b/lib/licenses.nix
@@ -18,6 +18,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) {
fullName = "Abstyles License";
};
+ afl20 = spdx {
+ spdxId = "AFL-2.0";
+ fullName = "Academic Free License v2.0";
+ };
+
afl21 = spdx {
spdxId = "AFL-2.1";
fullName = "Academic Free License v2.1";
diff --git a/pkgs/tools/misc/pfsshell/default.nix b/pkgs/tools/misc/pfsshell/default.nix
new file mode 100644
index 000000000000..e941cbd84c79
--- /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 ];
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0d23902f3af4..a90cdb626412 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -23325,6 +23325,8 @@ in
pflask = callPackage ../os-specific/linux/pflask {};
+ pfsshell = callPackage ../tools/misc/pfsshell { };
+
photoqt = libsForQt5.callPackage ../applications/graphics/photoqt { };
photoflare = libsForQt5.callPackage ../applications/graphics/photoflare { };