bigpemu: init at 1.17 (#366367)

This commit is contained in:
Arne Keller
2025-01-12 18:43:22 +01:00
committed by GitHub
3 changed files with 68 additions and 0 deletions
+6
View File
@@ -23194,6 +23194,12 @@
githubId = 178444;
name = "Thomas Bereknyei";
};
tombert = {
email = "thomas@gebert.app";
github = "tombert";
githubId = 2027925;
name = "Thomas Gebert";
};
tomfitzhenry = {
email = "tom@tom-fitzhenry.me.uk";
github = "tomfitzhenry";
+53
View File
@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchurl,
SDL2,
glui,
libGLU,
libGL,
buildFHSEnv,
}:
let
bigpemu-unwrapped = 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
'';
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 = with lib.platforms; [ "x86_64-linux" ];
};
};
in
buildFHSEnv {
name = "bigpemu";
version = bigpemu-unwrapped.version;
targetPkgs = pkgs: [
glui
libGL
libGLU
SDL2
];
runScript = "${bigpemu-unwrapped}/bin/bigpemu";
passthru = {
unwrapped = bigpemu-unwrapped;
updateScript = ./update.sh;
};
}
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
set -eu -o pipefail
page="https://www.richwhitehouse.com/jaguar/index.php?content=download"
extractor='font:contains("Current Version") strong text{}'
lastest_version="$(curl "$page" | pup "$extractor")"
update-source-version \
--ignore-same-version \
bigpemu.unwrapped "$lastest_version"