Skip to content

Commit

Permalink
uxplay: fix build on darwin (#347641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 17, 2024
2 parents 4299734 + af42217 commit e71ae2a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkgs/by-name/ux/uxplay/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
stdenv,
fetchFromGitHub,
cmake,
openssl,
libplist,
pkg-config,
wrapGAppsHook3,
avahi,
avahi-compat,
gst_all_1,
libplist,
openssl,
nix-update-script,
}:

Expand All @@ -26,14 +26,13 @@ stdenv.mkDerivation (finalAttrs: {

postPatch = ''
substituteInPlace lib/CMakeLists.txt \
--replace "APPLE" "FALSE" \
--replace ".a" "${stdenv.hostPlatform.extensions.sharedLibrary}"
sed -i '/PKG_CONFIG_EXECUTABLE/d' renderers/CMakeLists.txt
sed -i -e '/PKG_CONFIG_EXECUTABLE/d' -e '/PKG_CONFIG_PATH/d' renderers/CMakeLists.txt
'';

nativeBuildInputs = [
cmake
openssl
libplist
pkg-config
wrapGAppsHook3
];
Expand All @@ -47,6 +46,8 @@ stdenv.mkDerivation (finalAttrs: {
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
libplist
openssl
];

passthru.updateScript = nix-update-script { };
Expand Down

0 comments on commit e71ae2a

Please sign in to comment.