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 25aeda7
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions pkgs/by-name/bi/bigpemu/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
lib,
stdenv,
fetchurl,
SDL2,
glui,
libGLU,
libGL,
buildFHSEnv,
}:

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

in
buildFHSEnv {
name = "bigpemu";
targetPkgs = pkgs: [
SDL2
glui
libGLU
libGL
];
runScript = "${bigpemuDrv}/bin/bigpemu";
}

0 comments on commit 25aeda7

Please sign in to comment.