depot/third_party/nixpkgs/pkgs/applications/emulators/melonDS/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

54 lines
992 B
Nix

{ lib
, fetchFromGitHub
, stdenv
, cmake
, extra-cmake-modules
, libarchive
, libpcap
, libslirp
, pkg-config
, qtbase
, qtmultimedia
, SDL2
, wayland
, wrapQtAppsHook
}:
stdenv.mkDerivation rec {
pname = "melonDS";
version = "0.9.5";
src = fetchFromGitHub {
owner = "Arisotura";
repo = pname;
rev = version;
sha256 = "sha256-n4Vkxb/7fr214PgB6VFNgH1tMDgTBS/UHUQ6V4uGkDA=";
};
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
wrapQtAppsHook
];
buildInputs = [
libarchive
libslirp
qtbase
qtmultimedia
SDL2
wayland
];
qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ];
meta = with lib; {
homepage = "https://melonds.kuribo64.net/";
description = "Work in progress Nintendo DS emulator";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ artemist benley shamilton xfix ];
platforms = platforms.linux;
mainProgram = "melonDS";
};
}