add bsnes plus #293
5 changed files with 45 additions and 0 deletions
|
@ -76,6 +76,7 @@ in
|
|||
plover-plugin-python-dictionary
|
||||
plover-plugin-stenotype-extended
|
||||
asar
|
||||
bsnes-plus
|
||||
;
|
||||
}
|
||||
// (
|
||||
|
|
31
emulator/bsnes-plus/default.nix
Normal file
31
emulator/bsnes-plus/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
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
|
||||
'';
|
||||
enableParallelBuilding = true;
|
||||
}
|
11
emulator/bsnes-plus/source.json
Normal file
11
emulator/bsnes-plus/source.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"url": "https://github.com/devinacker/bsnes-plus",
|
||||
"rev": "14e00375ba15cd605bf716117cd66ddaf5d93914",
|
||||
"date": "2023-06-05T20:56:09-04:00",
|
||||
"path": "/nix/store/pn7q6xy2hpd57s2a29j4zp3lk06sf462-bsnes-plus",
|
||||
"sha256": "0g7djccmshidqjcpgm0w8mvi4wy1w2v3zfvl1sv5caarch6kdswv",
|
||||
"fetchLFS": false,
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
|
@ -120,6 +120,7 @@
|
|||
plover-plugin-python-dictionary
|
||||
plover-plugin-stenotype-extended
|
||||
asar
|
||||
bsnes-plus
|
||||
;
|
||||
}
|
||||
// (
|
||||
|
|
|
@ -128,6 +128,7 @@ system: self: super: let
|
|||
linux-bcachefs = self.callPackage ./linux/bcachefs {kernelPatches = [];};
|
||||
bcachefs-tools = self.callPackage ./linux/bcachefs-tools {};
|
||||
asar = self.callPackage ./compiler/asar {};
|
||||
bsnes-plus = self.libsForQt5.callPackage ./emulator/bsnes-plus {};
|
||||
})
|
||||
riscv-overlay
|
||||
];
|
||||
|
|
Reference in a new issue