at 22.05-pre 23 lines 846 B view raw
1{ lib, stdenv, fetchurl, openssl, curl, SDL }: 2 3stdenv.mkDerivation rec { 4 pname = "tinyemu"; 5 version = "2018-09-23"; 6 src = fetchurl { 7 url = "https://bellard.org/tinyemu/${pname}-${version}.tar.gz"; 8 sha256 = "0d6payyqf4lpvmmzvlpq1i8wpbg4sf3h6llsw0xnqdgq3m9dan4v"; 9 }; 10 buildInputs = [ openssl curl SDL ]; 11 makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ]; 12 preInstall = '' 13 mkdir -p "$out/bin" 14 ''; 15 meta = { 16 homepage = "https://bellard.org/tinyemu/"; 17 description = "A system emulator for the RISC-V and x86 architectures"; 18 longDescription = "TinyEMU is a system emulator for the RISC-V and x86 architectures. Its purpose is to be small and simple while being complete."; 19 license = with lib.licenses; [ mit bsd2 ]; 20 platforms = lib.platforms.linux; 21 maintainers = with lib.maintainers; [ jhhuh ]; 22 }; 23}