Skip to content

Commit

Permalink
bigpemu: init at 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Tombert committed Dec 22, 2024
1 parent d9f1329 commit f610ee3
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/by-name/bi/bigpemu/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
lib,
stdenv,
fetchurl,
SDL2,
glui,
libGLU,
libGL,
buildFHSUserEnv,
}:

let
bigpemuDrv = stdenv.mkDerivation rec {
pname = "BigPEmu";
version = "1.17";

src = fetchurl {
url = "https://www.richwhitehouse.com/jaguar/builds/BigPEmu_Linux64_v${
builtins.replaceStrings [ "." ] [ "" ] version
}.tar.gz";
hash = "sha256-R5f3LD5RcGwdwcZqXGaCSFDyHaJrQ1ghS3kqVvBd38A=";
};

installPhase = ''
mkdir -p $out/bin
tar -xvf $src -C $out/bin --strip-components=1
'';

postInstall = ''
wrapProgram $out/bin/bigpemu \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
SDL2
glui
libGLU
libGL
]
}
'';

dontPatchELF = true;

meta = with lib; {
description = "Atari Jaguar Emulator (BigPEmu) by Richard Whitehouse";
homepage = "https://www.richwhitehouse.com/jaguar/index.php";
license = licenses.unfree;
maintainers = [ maintainers.tombert ];
platforms = [ "x86_64-linux" ];
};
};

in
buildFHSUserEnv {
name = "bigpemu";
targetPkgs = pkgs: [
SDL2
glui
libGLU
libGL
];
runScript = "${bigpemuDrv}/bin/bigpemu";
}
3 changes: 3 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,9 @@ with pkgs;

winetricks = callPackage ../applications/emulators/wine/winetricks.nix { };

bigpemu = callPackage ../by-name/bi/bigpemu/package.nix {
buildFHSUserEnv = buildFHSEnv;
};
zsnes = pkgsi686Linux.callPackage ../applications/emulators/zsnes { };
zsnes2 = pkgsi686Linux.callPackage ../applications/emulators/zsnes/2.x.nix { };

Expand Down

0 comments on commit f610ee3

Please sign in to comment.