summary refs log tree commit diff
path: root/pkgs/tools/games/ps3iso-utils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/games/ps3iso-utils/default.nix')
-rw-r--r--pkgs/tools/games/ps3iso-utils/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/games/ps3iso-utils/default.nix b/pkgs/tools/games/ps3iso-utils/default.nix
new file mode 100644
index 00000000000..63093b59b2c
--- /dev/null
+++ b/pkgs/tools/games/ps3iso-utils/default.nix
@@ -0,0 +1,38 @@
+{ stdenv
+, fetchFromGitHub
+, unstableGitUpdater
+, lib
+}:
+stdenv.mkDerivation {
+  pname = "ps3iso-utils";
+  version = "277db7de";
+
+  src = fetchFromGitHub {
+    owner = "bucanero";
+    repo = "ps3iso-utils";
+    rev = "878090980a9042c61901920fed1b034af215e8c7";
+    hash = "sha256-HUx5BqHBvVMUHReuJL0RcyxXOnufSt1Zi/ieAlI2eoc=";
+  };
+
+  buildPhase = ''
+    mkdir -p bin/
+    find . -type f -name "*.c" -exec \
+    sh -c 'OFILE=`basename "{}" ".c"` && $CC "{}" -o bin/"$OFILE"' \;
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp bin/* $out/bin
+  '';
+
+  passthru.updateScript = unstableGitUpdater { };
+
+  meta = with lib; {
+    description = "Estwald's PS3ISO utilities";
+    homepage = "https://github.com/bucanero/ps3iso-utils";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ soupglasses ];
+    platforms = platforms.all;
+  };
+}
+