bigpemu: init at 1.17 (#366367)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Executable
+9
@@ -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"
|
||||
Reference in New Issue
Block a user