2022-02-16 04:37:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, SDL
|
|
|
|
, curl
|
|
|
|
, openssl
|
|
|
|
}:
|
2018-10-06 08:03:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tinyemu";
|
2022-02-16 04:37:29 +00:00
|
|
|
version = "2019-12-21";
|
|
|
|
|
2018-10-06 08:03:22 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00: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 08:03:22 +00:00
|
|
|
};
|
2022-02-16 04:37:29 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
curl
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
2022-04-06 14:01:40 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC:=$(CC)"
|
|
|
|
"STRIP:=$(STRIP)"
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"bindir=/bin"
|
|
|
|
];
|
2022-02-16 04:37:29 +00:00
|
|
|
|
2018-10-06 08:03:22 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
'';
|
2022-02-16 04:37:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://bellard.org/tinyemu/";
|
2018-10-06 08:03:22 +00: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 08:03:22 +00:00
|
|
|
};
|
|
|
|
}
|