2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-12-03 08:41:04 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, upx
|
|
|
|
}:
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-12-03 08:41:04 +00:00
|
|
|
pname = "hdl-dump";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "20202807";
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
# Using AkuHAK's repo because playstation2's repo is outdated
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AKuHAK";
|
|
|
|
repo = pname;
|
2021-02-13 14:23:35 +00:00
|
|
|
rev = "0c98b235c83c0fca1da93648f05ea5f940a4aee0";
|
|
|
|
sha256 = "1s3wflqjjlcslpa9n5chr8dbamhmfk88885dzw68apz4vf6g27iq";
|
2020-12-03 08:41:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ upx ];
|
|
|
|
|
|
|
|
makeFlags = [ "RELEASE=yes" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 hdl_dump -t $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-03 08:41:04 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|