summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/emulators/ppsspp
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-08-13 21:53:16 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-08-13 21:57:50 -0300
commit92dcbeaf1ebda27879005bc01e77ab95217ef3bf (patch)
treec8d81fd703b3c50e947331518de2c1c508c30b09 /pkgs/applications/emulators/ppsspp
parent4fb60f3177290558355e1cdc2e03b9da449c41ef (diff)
ppsspp: get rid of libsForQt5.callPackage
And use the new functional framework for recursive style attributes.
Diffstat (limited to 'pkgs/applications/emulators/ppsspp')
-rw-r--r--pkgs/applications/emulators/ppsspp/default.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/applications/emulators/ppsspp/default.nix b/pkgs/applications/emulators/ppsspp/default.nix
index 14121a49bde5..1264768f387d 100644
--- a/pkgs/applications/emulators/ppsspp/default.nix
+++ b/pkgs/applications/emulators/ppsspp/default.nix
@@ -1,37 +1,43 @@
-{ mkDerivation
+{ lib
+, stdenv
, fetchFromGitHub
, SDL2
, cmake
, ffmpeg
, glew
-, lib
, libzip
, pkg-config
, python3
, qtbase
, qtmultimedia
, snappy
+, wrapQtAppsHook
, zlib
}:
-mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
pname = "ppsspp";
version = "1.13.1";
src = fetchFromGitHub {
owner = "hrydgard";
- repo = pname;
- rev = "v${version}";
+ repo = "ppsspp";
+ rev = "v${finalAttrs.version}";
fetchSubmodules = true;
sha256 = "sha256-WsFy2aSOmkII2Lte5et4W6qj0AXUKWWkYe88T0OQP08=";
};
postPatch = ''
- substituteInPlace git-version.cmake --replace unknown ${src.rev}
+ substituteInPlace git-version.cmake --replace unknown ${finalAttrs.src.rev}
substituteInPlace UI/NativeApp.cpp --replace /usr/share $out/share
'';
- nativeBuildInputs = [ cmake pkg-config python3 ];
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ python3
+ wrapQtAppsHook
+ ];
buildInputs = [
SDL2
@@ -68,5 +74,5 @@ mkDerivation rec {
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux;
};
-}
+})
# TODO: add SDL headless port