summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/hdl-dump/default.nix
blob: bd454223a48d0e01c00759565b8a964252f70ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, lib, pkgs, fetchurl,fetchFromGitHub, upx, wine }:
stdenv.mkDerivation rec {
  pname = "hdl-dump";
  version = "75df8d7";
  name = "${pname}-${version}";

  src = fetchFromGitHub {
    owner = "AKuHAK";
    repo = "hdl-dump";
    rev = version;
    sha256 = "10jjr6p5yn0c182x17m7q68jmf8gizcny7wjxw7z5yh0fv5s48z4";
  };

  buildInputs = [ upx wine ];

  makeFlags = [ "RELEASE=yes" ];

  # uses wine, currently broken
  #postBuild = ''
  #  make -C gui
  #'';

  installPhase = ''
    mkdir -p $out/bin
    cp hdl_dump $out/bin
  '';

  meta = {
    homepage = https://github.com/AKuHAK/hdl-dump ;
    description = "copy isos to psx hdd";
    license = lib.licenses.gpl2;
  };
}