This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/emulator/bsnes-plus/default.nix

35 lines
868 B
Nix
Raw Normal View History

2023-07-19 12:21:58 +00:00
{
fetchFromGitHub,
stdenv,
qtbase,
wrapQtAppsHook,
pkg-config,
SDL,
libXv,
libao,
openal,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
stdenv.mkDerivation {
pname = "bsnes-plus";
version = source.date;
src = fetchFromGitHub {
owner = "devinacker";
repo = "bsnes-plus";
inherit (source) rev sha256;
};
makeFlags = ["-C" "bsnes" "out=bsnes"];
buildInputs = [qtbase SDL libXv libao openal];
nativeBuildInputs = [wrapQtAppsHook pkg-config];
passthru.updateScript = [../../scripts/update-git.sh "https://github.com/devinacker/bsnes-plus" "emulator/bsnes-plus/source.json"];
preInstall = ''
export HOME=$(mktemp -d)
export prefix=$out
'';
2023-07-20 07:39:03 +00:00
preFixup = ''
qtWrapperArgs+=("--unset" "WAYLAND_DISPLAY")
'';
2023-07-19 12:21:58 +00:00
enableParallelBuilding = true;
}