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 19, 2024
1 parent 7108762 commit 18fcddf
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22856,6 +22856,12 @@
githubId = 178444;
name = "Thomas Bereknyei";
};
tombert = {
email = "[email protected]";
github = "tombert";
githubId = 2027925;
name = "Thomas Gebert";
};
tomfitzhenry = {
email = "[email protected]";
github = "tomfitzhenry";
Expand Down
75 changes: 75 additions & 0 deletions pkgs/by-name/bi/bigpemu/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
lib,
stdenv,
fetchurl,
makeWrapper,
dpkg,
SDL2,
SDL,
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_v117.tar.gz";
sha256 = "sha256-R5f3LD5RcGwdwcZqXGaCSFDyHaJrQ1ghS3kqVvBd38A=";
};

nativeBuildInputs = [ makeWrapper ];
buildInputs = [
dpkg
SDL2
SDL
glui
libGLU
libGL
];

installPhase = ''
mkdir -p $out/bin
tar -xvf $src
cp -r bigpemu/* $out/bin
wrapProgram $out/bin/bigpemu \
--prefix LD_LIBRARY_PATH : "$out/bin/bigpemu:${
lib.makeLibraryPath [
SDL2
SDL
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: [
dpkg
SDL2
SDL
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 18fcddf

Please sign in to comment.