summary refs log tree commit diff
path: root/pkgs/misc/gxemul/default.nix
blob: 8538932339c0a654d947ac1b4168b5b387c137cc (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
{ stdenv, composableDerivation, fetchurl }:

let edf = composableDerivation.edf;
    name = "gxemul-0.4.6";
in

composableDerivation.composableDerivation {} {
  inherit name;
  
  flags = {
    doc   = { installPhase = "mkdir -p \$out/share/${name}; cp -r doc \$out/share/${name};"; implies = "man"; };
    demos = { installPhase = "mkdir -p \$out/share/${name}; cp -r demos \$out/share/${name};"; };
    man   = { installPhase = "cp -r ./man \$out/;";};
  };

  cfg = {
    docSupport = true;
    demosSupport = true;
    manSupport = true;
  };

  installPhase = "mkdir -p \$out/bin; cp gxemul \$out/bin;";

  src = fetchurl {
    url = http://gavare.se/gxemul/src/gxemul-0.4.6.tar.gz;
    sha256 = "0hf3gi6hfd2qr5090zimfiddcjgank2q6m7dfsr81wwpxfbhb2z3";
  };

  configurePhase = "./configure";

  meta = {
    license = stdenv.lib.licenses.bsd3;
    description = "A Machine Emulator, mainly emulates MIPS, but supports other CPU types";
    homepage = http://gxemul.sourceforge.net/;
  };

  mergeAttrBy = { installPhase = a : b : "${a}\n${b}"; };
}