3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/emulators/tinyemu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
900 B
Nix
Raw Normal View History

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 {
pname = "tinyemu";
2022-02-16 04:37:29 +00:00
version = "2019-12-21";
2018-10-06 09:03:22 +01:00
src = fetchurl {
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; {
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
};
}