2014-12-21 00:00:35 +01:00
|
|
|
{ stdenv, composableDerivation, fetchurl }:
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2008-12-20 02:20:35 +01:00
|
|
|
let edf = composableDerivation.edf;
|
2010-07-28 20:01:17 +02:00
|
|
|
name = "gxemul-0.4.6";
|
|
|
|
in
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
composableDerivation.composableDerivation {} {
|
2009-03-07 00:21:28 +01:00
|
|
|
inherit name;
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
flags = {
|
2012-01-18 21:16:00 +01:00
|
|
|
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};"; };
|
2010-07-28 20:01:17 +02:00
|
|
|
man = { installPhase = "cp -r ./man \$out/;";};
|
2009-03-07 00:21:28 +01:00
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
cfg = {
|
|
|
|
docSupport = true;
|
|
|
|
demosSupport = true;
|
|
|
|
manSupport = true;
|
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
installPhase = "mkdir -p \$out/bin; cp gxemul \$out/bin;";
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://gavare.se/gxemul/src/gxemul-0.4.6.tar.gz;
|
|
|
|
sha256 = "0hf3gi6hfd2qr5090zimfiddcjgank2q6m7dfsr81wwpxfbhb2z3";
|
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
configurePhase = "./configure";
|
2007-09-03 14:10:57 +02:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
meta = {
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2010-07-28 20:01:17 +02:00
|
|
|
description = "A Machine Emulator, mainly emulates MIPS, but supports other CPU types";
|
2014-12-21 00:00:35 +01:00
|
|
|
homepage = http://gxemul.sourceforge.net/;
|
2007-09-03 14:10:57 +02:00
|
|
|
};
|
2009-03-07 00:21:28 +01:00
|
|
|
|
|
|
|
mergeAttrBy = { installPhase = a : b : "${a}\n${b}"; };
|
2007-09-03 14:10:57 +02:00
|
|
|
}
|