2010-07-28 22:01:17 +04:00
|
|
|
{ composableDerivation, fetchurl }:
|
|
|
|
|
2008-12-20 04:20:35 +03:00
|
|
|
let edf = composableDerivation.edf;
|
2010-07-28 22:01:17 +04:00
|
|
|
name = "gxemul-0.4.6";
|
|
|
|
in
|
2008-12-20 04:20:35 +03:00
|
|
|
|
2010-07-28 22:01:17 +04:00
|
|
|
composableDerivation.composableDerivation {} {
|
2009-03-07 02:21:28 +03:00
|
|
|
inherit name;
|
2010-07-28 22:01:17 +04:00
|
|
|
|
2009-03-07 02:21:28 +03:00
|
|
|
flags = {
|
2010-07-28 22:01:17 +04:00
|
|
|
doc = { installPhase = "ensureDir \$out/share/${name}; cp -r doc \$out/share/${name};"; implies = "man"; };
|
|
|
|
demos = { installPhase = "ensureDir \$out/share/${name}; cp -r demos \$out/share/${name};"; };
|
|
|
|
man = { installPhase = "cp -r ./man \$out/;";};
|
2009-03-07 02:21:28 +03:00
|
|
|
};
|
2007-09-03 16:10:57 +04:00
|
|
|
|
2009-03-07 02:21:28 +03:00
|
|
|
cfg = {
|
|
|
|
docSupport = true;
|
|
|
|
demosSupport = true;
|
|
|
|
manSupport = true;
|
|
|
|
};
|
2007-09-03 16:10:57 +04:00
|
|
|
|
2009-03-07 02:21:28 +03:00
|
|
|
installPhase = "ensureDir \$out/bin; cp gxemul \$out/bin;";
|
2008-12-20 04:20:35 +03:00
|
|
|
|
2009-03-07 02:21:28 +03:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://gavare.se/gxemul/src/gxemul-0.4.6.tar.gz;
|
|
|
|
sha256 = "0hf3gi6hfd2qr5090zimfiddcjgank2q6m7dfsr81wwpxfbhb2z3";
|
|
|
|
};
|
2007-09-03 16:10:57 +04:00
|
|
|
|
2010-07-28 22:01:17 +04:00
|
|
|
configurePhase = "./configure";
|
2007-09-03 16:10:57 +04:00
|
|
|
|
2009-03-07 02:21:28 +03:00
|
|
|
meta = {
|
|
|
|
license = "BSD";
|
2010-07-28 22:01:17 +04:00
|
|
|
description = "A Machine Emulator, mainly emulates MIPS, but supports other CPU types";
|
2009-03-07 02:21:28 +03:00
|
|
|
homepage = http://gavare.se/gxemul/;
|
2007-09-03 16:10:57 +04:00
|
|
|
};
|
2009-03-07 02:21:28 +03:00
|
|
|
|
|
|
|
mergeAttrBy = { installPhase = a : b : "${a}\n${b}"; };
|
2007-09-03 16:10:57 +04:00
|
|
|
}
|