shadowenv: 3.0.1 -> 3.0.3 (#378729)
[NixPkgs.git] / pkgs / by-name / rp / rpcemu / package.nix
blob648da19c8cefd85e45577a0d008fb746bbd4db62
2   lib,
3   stdenv,
4   fetchhg,
5   qt5,
6 }:
8 let
9   inherit (qt5) qtbase qtmultimedia wrapQtAppsHook;
11 stdenv.mkDerivation (finalAttrs: {
12   pname = "rpcemu";
13   version = "0.9.4";
15   src = fetchhg {
16     url = "http://www.home.marutan.net/hg/rpcemu";
17     rev = "release_${finalAttrs.version}";
18     sha256 = "sha256-UyjfTfUpSvJNFPkQWPKppxp/kO0hVGo5cE9RuCU8GJI=";
19   };
21   nativeBuildInputs = [
22     wrapQtAppsHook
23   ];
25   buildInputs = [
26     qtbase
27     qtmultimedia
28   ];
30   configurePhase = ''
31     runHook preConfigure
33     cd src/qt5
34     qmake
36     runHook postConfigure
37   '';
39   installPhase = ''
40     runHook preInstall
42     cd ../..
43     install -Dm755 rpcemu-interpreter -t $out/bin
45     runHook postInstall
46   '';
48   meta = {
49     homepage = "https://www.marutan.net/rpcemu/index.php";
50     description = "Risc PC Emulator";
51     mainProgram = "rpcemu-interpreter";
52     longDescription = ''
53       RPCEmu is an emulator of classic Acorn computer systems, such as the Risc
54       PC and A7000. It runs on multiple platforms including Windows, Linux and
55       Mac OS X.
57       RPCEmu should be considered Alpha Quality code. It has many known and
58       unknown bugs, and all files used with it should be well backed up before
59       using them with RPCEmu.
60     '';
61     license = lib.licenses.gpl2Plus;
62     maintainers = builtins.attrValues {
63       inherit (lib.maintainers) AndersonTorres;
64     };
65     platforms = lib.platforms.linux;
66   };