nixpkgs/pkgs/applications/emulators/tinyemu/default.nix

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

47 lines
948 B
Nix
Raw Normal View History

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