3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/hdl-dump/default.nix

35 lines
768 B
Nix
Raw Normal View History

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