Merge pull request #302417 from msanft/supermodel/init

supermodel: init at 0-unstable-2024-04-05

authored by Paul Meyer and committed by GitHub 8c19cfa3 42abe2a4

+64
+64
pkgs/by-name/su/supermodel/package.nix
··· 1 + { fetchFromGitHub 2 + , lib 3 + , libGLU 4 + , SDL2 5 + , SDL2_net 6 + , stdenv 7 + , zlib 8 + }: 9 + 10 + stdenv.mkDerivation rec { 11 + pname = "supermodel"; 12 + version = "0-unstable-2024-04-05"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "trzy"; 16 + repo = "supermodel"; 17 + rev = "250f84e78eba381adf8cd731ce20b1b9be43c8c8"; 18 + hash = "sha256-3sDtNMW5R5Eq9GXJzKs0mQdiLUIWl6+4+rzKg8xpqEY="; 19 + }; 20 + 21 + buildInputs = [ 22 + libGLU 23 + SDL2 24 + SDL2_net 25 + zlib 26 + ]; 27 + 28 + env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 29 + 30 + makefile = "Makefiles/Makefile.UNIX"; 31 + 32 + makeFlags = [ "NET_BOARD=1" ]; 33 + 34 + installPhase = '' 35 + runHook preInstall 36 + 37 + mkdir -p $out/bin 38 + mkdir -p $out/share/supermodel 39 + cp bin/* $out/bin 40 + cp -r Config Assets $out/share/supermodel 41 + 42 + runHook postInstall 43 + ''; 44 + 45 + meta = { 46 + description = "A Sega Model 3 Arcade Emulator"; 47 + homepage = "https://github.com/trzy/supermodel"; 48 + license = lib.licenses.gpl3; 49 + longDescription = '' 50 + Supermodel requires specific files to be present in the $HOME directory of 51 + the user running the emulator. To ensure these files are present, move the 52 + configuration and assets as follows: 53 + 54 + <code>cp $out/share/supermodel/Config/Supermodel.ini ~/.config/supermodel/Config/Supermodel.ini</code> 55 + <code>cp -r $out/share/supermodel/Assets/* ~/.local/share/supermodel/Assets/</code> 56 + 57 + Then the emulator can be started with: 58 + <code>supermodel -game-xml-file=$out/share/supermodel/Config/Games.xml /path/to/romset</code>. 59 + ''; 60 + mainProgram = "supermodel"; 61 + maintainers = with lib.maintainers; [ msanft ]; 62 + platforms = lib.platforms.linux; 63 + }; 64 + }