nixpkgs/pkgs/applications/emulators/melonDS/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, SDL2
, cmake
2023-01-03 18:20:13 +00:00
, extra-cmake-modules
, fetchFromGitHub
2021-09-13 19:23:30 +00:00
, libarchive
, libpcap
, libsForQt5
, libslirp
, libGL
2021-09-13 19:23:30 +00:00
, pkg-config
, stdenv
2023-01-03 18:20:13 +00:00
, wayland
, zstd
}:
2019-10-28 22:13:45 +00:00
let
inherit (libsForQt5)
qtbase
qtmultimedia
wrapQtAppsHook;
in
stdenv.mkDerivation (finalAttrs: {
2019-10-28 22:13:45 +00:00
pname = "melonDS";
version = "0.9.5-unstable-2024-01-17";
2019-10-28 22:13:45 +00:00
src = fetchFromGitHub {
owner = "melonDS-emu";
repo = "melonDS";
rev = "7897bd387bfd37615a049eba28d02dc23cfa5194";
hash = "sha256-7BrUa8QJnudJkiCtuBdfar+FeeJSrdMGJdhXrPP6uww=";
2019-10-28 22:13:45 +00:00
};
2023-01-03 18:20:13 +00:00
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
buildInputs = [
SDL2
extra-cmake-modules
2021-09-13 19:23:30 +00:00
libarchive
libslirp
libGL
2021-09-13 19:23:30 +00:00
qtbase
2023-01-03 18:20:13 +00:00
qtmultimedia
wayland
zstd
];
2019-10-28 22:13:45 +00:00
strictDeps = true;
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}"
];
meta = {
homepage = "https://melonds.kuribo64.net/";
2019-10-28 22:13:45 +00:00
description = "Work in progress Nintendo DS emulator";
license = with lib.licenses; [ gpl3Plus ];
mainProgram = "melonDS";
maintainers = with lib.maintainers; [
AndersonTorres
artemist
benley
shamilton
];
platforms = lib.platforms.linux;
2019-10-28 22:13:45 +00:00
};
})