diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-16 17:03:06 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-20 22:22:23 -0300 |
commit | 5243957ed34fc4983ec49431ab0c7d2ec7d70467 (patch) | |
tree | 2188bc41bf03b0420b98f04e1165d447a2beedbe /pkgs/applications/emulators | |
parent | 7f5ff5eeeb1b6289637767a4b25346c79ca7e718 (diff) |
ppsspp: change self to finalAttrs
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r-- | pkgs/applications/emulators/ppsspp/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/emulators/ppsspp/default.nix b/pkgs/applications/emulators/ppsspp/default.nix index 29b64ebb6bd83..afa361903f519 100644 --- a/pkgs/applications/emulators/ppsspp/default.nix +++ b/pkgs/applications/emulators/ppsspp/default.nix @@ -29,7 +29,7 @@ let in # Only SDL frontend needs to specify whether to use Wayland assert forceWayland -> !enableQt; -stdenv.mkDerivation (self: { +stdenv.mkDerivation (finalAttrs: { pname = "ppsspp" + lib.optionalString enableQt "-qt" + lib.optionalString (!enableQt) "-sdl" @@ -39,13 +39,13 @@ stdenv.mkDerivation (self: { src = fetchFromGitHub { owner = "hrydgard"; repo = "ppsspp"; - rev = "v${self.version}"; + rev = "v${finalAttrs.version}"; fetchSubmodules = true; sha256 = "sha256-7xzhN8JIQD4LZg8sQ8rLNYZrW0nCNBfZFgzoKdoWbKc="; }; postPatch = '' - substituteInPlace git-version.cmake --replace unknown ${self.src.rev} + substituteInPlace git-version.cmake --replace unknown ${finalAttrs.src.rev} substituteInPlace UI/NativeApp.cpp --replace /usr/share $out/share ''; |