diff options
author | Joachim F <joachifm@users.noreply.github.com> | 2018-10-08 18:19:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 18:19:24 +0000 |
commit | 6787357bc2cb1f2ac43f4d545718888df7a4e4f2 (patch) | |
tree | 96eb941e7b30b1438d6bc19b83560bbc442d46e9 | |
parent | 7ff2a87b8ef0448999129e79f87c6b15122a0244 (diff) | |
parent | 3115f8dffb427f64c5ab12ed51cc173980a4a1c9 (diff) |
Merge pull request #47960 from jhhuh/tinyemu
tinyemu: init at 2018-09-23
-rw-r--r-- | pkgs/applications/virtualization/tinyemu/default.nix | 23 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/tinyemu/default.nix b/pkgs/applications/virtualization/tinyemu/default.nix new file mode 100644 index 0000000000000..a8f113307251e --- /dev/null +++ b/pkgs/applications/virtualization/tinyemu/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, openssl, curl, SDL }: + +stdenv.mkDerivation rec { + name = "tinyemu-${version}"; + version = "2018-09-23"; + src = fetchurl { + url = "https://bellard.org/tinyemu/${name}.tar.gz"; + sha256 = "0d6payyqf4lpvmmzvlpq1i8wpbg4sf3h6llsw0xnqdgq3m9dan4v"; + }; + buildInputs = [ openssl curl SDL ]; + makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ]; + preInstall = '' + mkdir -p "$out/bin" + ''; + meta = { + homepage = https://bellard.org/tinyemu/; + description = "A system emulator for the RISC-V and x86 architectures"; + longDescription = "TinyEMU is a system emulator for the RISC-V and x86 architectures. Its purpose is to be small and simple while being complete."; + license = with stdenv.lib.licenses; [ mit bsd2 ]; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ jhhuh ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2548afe22f58b..22ae50b686639 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5604,6 +5604,8 @@ with pkgs; tiny8086 = callPackage ../applications/virtualization/8086tiny { }; + tinyemu = callPackage ../applications/virtualization/tinyemu { }; + tinyproxy = callPackage ../tools/networking/tinyproxy {}; tio = callPackage ../tools/misc/tio { }; |