2022-02-16 04:37:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, SDL
|
|
|
|
, curl
|
|
|
|
, openssl
|
|
|
|
}:
|
2018-10-06 09:03:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tinyemu";
|
2022-02-16 04:37:29 +00:00
|
|
|
version = "2019-12-21";
|
|
|
|
|
2018-10-06 09:03:22 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://bellard.org/tinyemu/${pname}-${version}.tar.gz";
|
2022-02-16 04:37:29 +00:00
|
|
|
hash = "sha256-voNR8hIYGbMXL87c5csYJvoSyH2ht+2Y8mnT6AKgVVU=";
|
2018-10-06 09:03:22 +01:00
|
|
|
};
|
2022-02-16 04:37:29 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
curl
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
2018-10-06 09:03:22 +01:00
|
|
|
makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ];
|
2022-02-16 04:37:29 +00:00
|
|
|
|
2018-10-06 09:03:22 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
'';
|
2022-02-16 04:37:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://bellard.org/tinyemu/";
|
2018-10-06 09:03:22 +01:00
|
|
|
description = "A system emulator for the RISC-V and x86 architectures";
|
2022-02-16 04:37:29 +00:00
|
|
|
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 licenses; [ mit bsd2 ];
|
|
|
|
maintainers = with maintainers; [ jhhuh AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2018-10-06 09:03:22 +01:00
|
|
|
};
|
|
|
|
}
|