about summary refs log tree commit diff
path: root/pkgs/tools/misc/hdl-dump
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2020-11-30 20:04:37 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2020-11-30 23:46:14 -0300
commite1e750a52ce2434ac098227d073ba3d8336d288e (patch)
treeb5bbc8412eda802147b2b19e6d7da2aa1ab34087 /pkgs/tools/misc/hdl-dump
parentbf5da4bbd4af4ad5750091897d59bbf6b65c8f31 (diff)
hdl-dump: init at 20202807
Diffstat (limited to 'pkgs/tools/misc/hdl-dump')
-rw-r--r--pkgs/tools/misc/hdl-dump/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/hdl-dump/default.nix b/pkgs/tools/misc/hdl-dump/default.nix
new file mode 100644
index 0000000000000..96e81fe8bd4c0
--- /dev/null
+++ b/pkgs/tools/misc/hdl-dump/default.nix
@@ -0,0 +1,35 @@
+{ stdenv
+, fetchFromGitHub
+, upx
+}:
+
+let
+  version = "20202807";
+  pname = "hdl-dump";
+in stdenv.mkDerivation {
+  inherit pname version;
+
+  # Using AkuHAK's repo because playstation2's repo is outdated
+  src = fetchFromGitHub {
+    owner = "AKuHAK";
+    repo = pname;
+    rev = "be37e112a44772a1341c867dc3dfee7381ce9e59";
+    sha256 = "0akxak6hm11h8z6jczxgr795s4a8czspwnhl3swqxp803dvjdx41";
+  };
+
+  buildInputs = [ upx ];
+
+  makeFlags = [ "RELEASE=yes" ];
+
+  installPhase = ''
+    install -Dm755 hdl_dump -t $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/AKuHAK/hdl-dump";
+    description = "PlayStation 2 HDLoader image dump/install utility";
+    platforms = platforms.linux;
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ makefu ];
+  };
+}