From 0c7b63e3025d3073b6ea118de9e4e1c6dd5e033f Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Wed, 30 Dec 2020 01:35:04 +0100 Subject: [PATCH] duckstation: init at unstable-2020-12-29 (#107878) --- pkgs/misc/emulators/duckstation/default.nix | 34 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/misc/emulators/duckstation/default.nix diff --git a/pkgs/misc/emulators/duckstation/default.nix b/pkgs/misc/emulators/duckstation/default.nix new file mode 100644 index 00000000000..29b867f0e9e --- /dev/null +++ b/pkgs/misc/emulators/duckstation/default.nix @@ -0,0 +1,34 @@ +{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, SDL2, qtbase +, wrapQtAppsHook, qttools, ninja, gtk3 }: +mkDerivation rec { + pname = "duckstation"; + version = "unstable-2020-12-29"; + + src = fetchFromGitHub { + owner = "stenzek"; + repo = pname; + rev = "f8dcfabc44ff8391b2d41eab2e883dc8f21a88b7"; + sha256 = "0v6w4di4yj1hbxpqqrcw8rbfjg18g9kla8mnb3b5zgv7i4dyzykw"; + }; + + nativeBuildInputs = [ cmake wrapQtAppsHook qttools ]; + + buildInputs = [ SDL2 qtbase gtk3 pkg-config ]; + + installPhase = '' + mkdir -p $out/ + mv bin $out/ + ''; + + # TODO: + # - vulkan graphics backend (OpenGL works). + # - default sound backend (cubeb) does not work, but SDL does. + meta = with lib; { + description = + "PlayStation 1 emulator focusing on playability, speed and long-term maintainability"; + homepage = "https://github.com/stenzek/duckstation"; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = [ maintainers.guibou ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b97e21c5c3..7b17319f106 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12815,6 +12815,8 @@ in duckdb = callPackage ../development/libraries/duckdb {}; + duckstation = libsForQt5.callPackage ../misc/emulators/duckstation {}; + easyloggingpp = callPackage ../development/libraries/easyloggingpp {}; eccodes = callPackage ../development/libraries/eccodes {