about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/emulators/rpcemu/default.nix
blob: 25930470412af165c7f00da2223e6653d9e7833a (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ lib
, stdenv
, fetchhg
, qt5
}:

let
  inherit (qt5) qtbase qtmultimedia wrapQtAppsHook;
in
stdenv.mkDerivation (finalAttrs: {
  pname = "rpcemu";
  version = "0.9.4";

  src = fetchhg {
    url = "http://www.home.marutan.net/hg/rpcemu";
    rev = "release_${finalAttrs.version}";
    sha256 = "sha256-UyjfTfUpSvJNFPkQWPKppxp/kO0hVGo5cE9RuCU8GJI=";
  };

  nativeBuildInputs = [
    wrapQtAppsHook
  ];

  buildInputs = [
    qtbase
    qtmultimedia
  ];

  configurePhase = ''
    runHook preConfigure

    cd src/qt5
    qmake

    runHook postConfigure
  '';

  installPhase = ''
    runHook preInstall

    cd ../..
    install -Dm755 rpcemu-interpreter -t $out/bin

    runHook postInstall
  '';

  meta = {
    homepage = "https://www.marutan.net/rpcemu/index.php";
    description = "Risc PC Emulator";
    mainProgram = "rpcemu-interpreter";
    longDescription = ''
      RPCEmu is an emulator of classic Acorn computer systems, such as the Risc
      PC and A7000. It runs on multiple platforms including Windows, Linux and
      Mac OS X.

      RPCEmu should be considered Alpha Quality code. It has many known and
      unknown bugs, and all files used with it should be well backed up before
      using them with RPCEmu.
    '';
    license = lib.licenses.gpl2Plus;
    maintainers =  builtins.attrValues {
      inherit (lib.maintainers) AndersonTorres;
    };
    platforms = lib.platforms.linux;
  };
})