Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bigpemu: init at 1.17 #366367

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
53 changes: 53 additions & 0 deletions pkgs/by-name/bi/bigpemu/package.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions pkgs/by-name/bi/bigpemu/update.sh
Original file line number Diff line number Diff line change
@@ -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"
Loading