depot/third_party/nixpkgs/pkgs/applications/emulators/tinyemu/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
946 B
Nix

{ lib
, stdenv
, fetchurl
, SDL
, curl
, openssl
}:
stdenv.mkDerivation rec {
pname = "tinyemu";
version = "2019-12-21";
src = fetchurl {
url = "https://bellard.org/tinyemu/${pname}-${version}.tar.gz";
hash = "sha256-voNR8hIYGbMXL87c5csYJvoSyH2ht+2Y8mnT6AKgVVU=";
};
buildInputs = [
SDL
curl
openssl
];
makeFlags = [
"CC:=$(CC)"
"STRIP:=$(STRIP)"
"DESTDIR=$(out)"
"bindir=/bin"
];
preInstall = ''
mkdir -p "$out/bin"
'';
meta = with lib; {
homepage = "https://bellard.org/tinyemu/";
description = "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 licenses; [ mit bsd2 ];
maintainers = with maintainers; [ jhhuh AndersonTorres ];
platforms = platforms.linux;
};
}