summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/emulators/flycast
diff options
context:
space:
mode:
authorMartino Fontana <tinozzo123@tutanota.com>2022-11-08 10:56:27 +0100
committerMartino Fontana <tinozzo123@tutanota.com>2022-11-13 01:48:48 +0100
commitffb54f78f6163fd3c1e29d80e2b801fda72e941e (patch)
treee3573ec87b3b9eece105fb417f568d686141af20 /pkgs/applications/emulators/flycast
parent5f6c2aa9a4481e757b02f5b22f51e722cadf5a19 (diff)
flycast: fix vulkan
Update pkgs/applications/emulators/flycast/default.nix
Diffstat (limited to 'pkgs/applications/emulators/flycast')
-rw-r--r--pkgs/applications/emulators/flycast/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/flycast/default.nix b/pkgs/applications/emulators/flycast/default.nix
index 3243c333a335..b597abc7b069 100644
--- a/pkgs/applications/emulators/flycast/default.nix
+++ b/pkgs/applications/emulators/flycast/default.nix
@@ -3,6 +3,7 @@
, fetchFromGitHub
, cmake
, pkg-config
+, makeWrapper
, alsa-lib
, libX11
, libevdev
@@ -11,6 +12,7 @@
, SDL2
, libzip
, miniupnpc
+, vulkan-loader
}:
stdenv.mkDerivation rec {
@@ -28,6 +30,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
pkg-config
+ makeWrapper
];
buildInputs = [
@@ -41,6 +44,10 @@ stdenv.mkDerivation rec {
miniupnpc
];
+ postFixup = ''
+ wrapProgram $out/bin/flycast --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]}
+ '';
+
meta = with lib; {
homepage = "https://github.com/flyinghead/flycast";
changelog = "https://github.com/flyinghead/flycast/releases/tag/v${version}";