2021-01-17 02:30:45 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchFromGitHub, pkg-config, SDL2, glew, xcftools, python, pillow, makeWrapper }:
|
2018-08-12 23:13:09 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
vasm =
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "vasm";
|
2018-08-12 23:13:09 +00:00
|
|
|
version = "1.8c";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mbitsnbites";
|
|
|
|
repo = "vasm";
|
|
|
|
rev = "244f8bbbdf64ae603f9f6c09a3067943837459ec";
|
|
|
|
sha256 = "0x4y5q7ygxfjfy2wxijkps9khsjjfb169sbda410vaw0m88wqj5p";
|
|
|
|
};
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "CPU=m68k" "SYNTAX=mot" ];
|
2018-08-12 23:13:09 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp vasmm68k_mot $out/bin
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "blastem";
|
2018-08-12 23:13:09 +00:00
|
|
|
version = "0.5.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.retrodev.com/repos/blastem/archive/3d48cb0c28be.tar.gz";
|
|
|
|
sha256 = "07wzbmzp0y8mh59jxg81q17gqagz3psxigxh8dmzsipgg68y6a8r";
|
|
|
|
};
|
2021-01-17 02:30:45 +00:00
|
|
|
buildInputs = [ pkg-config SDL2 glew xcftools python pillow vasm makeWrapper ];
|
2018-08-12 23:13:09 +00:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs img2tiles.py
|
|
|
|
'';
|
|
|
|
postBuild = ''
|
|
|
|
make menu.bin
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/blastem
|
|
|
|
cp -r {blastem,menu.bin,default.cfg,rom.db,shaders} $out/share/blastem/
|
|
|
|
makeWrapper $out/share/blastem/blastem $out/bin/blastem
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.retrodev.com/blastem/";
|
2018-08-12 23:13:09 +00:00
|
|
|
description = "The fast and accurate Genesis emulator";
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = with lib.maintainers; [ puffnfresh ];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
2018-12-10 02:14:12 +00:00
|
|
|
# Makefile:140: *** aarch64 is not a supported architecture. Stop.
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2018-08-12 23:13:09 +00:00
|
|
|
};
|
|
|
|
}
|