Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkgs/by-name/li/libwebsockets/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ stdenv.mkDerivation (finalAttrs: {
]
);

# Remove after https://github.com/warmcat/libwebsockets/pull/3567 has been merged or otherwise addressed
postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
substituteInPlace "cmake/libwebsockets-config.cmake.in" --replace-fail \
"set(LIBWEBSOCKETS_LIBRARIES websockets websockets_shared)" \
"set(LIBWEBSOCKETS_LIBRARIES websockets)"
'';

postInstall = ''
# Fix path that will be incorrect on move to "dev" output.
substituteInPlace "$out/lib/cmake/libwebsockets/LibwebsocketsTargets-release.cmake" \
Expand Down