summary refs log tree commit diff
path: root/pkgs/development/libraries/libwebsockets
diff options
context:
space:
mode:
authorkvtb <76634406+kvtb@users.noreply.github.com>2021-07-19 09:36:01 +0000
committerGitHub <noreply@github.com>2021-07-19 09:36:01 +0000
commit1a40d6e37f4276509fd1b01f862212af87069107 (patch)
treeb5cd6ace6dd72c395f61df5b19b8cce6ea2b399d /pkgs/development/libraries/libwebsockets
parent7e2e486bbf84f6ec694bb30085f8faa5ce2a805f (diff)
downloadnixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.tar
nixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.tar.gz
nixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.tar.bz2
nixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.tar.lz
nixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.tar.xz
nixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.tar.zst
nixpkgs-1a40d6e37f4276509fd1b01f862212af87069107.zip
libwebsockets: remove runtime reference to GCC (closure size)
Diffstat (limited to 'pkgs/development/libraries/libwebsockets')
-rw-r--r--pkgs/development/libraries/libwebsockets/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libwebsockets/default.nix b/pkgs/development/libraries/libwebsockets/default.nix
index 7d8355112db..b6ef6fa49b2 100644
--- a/pkgs/development/libraries/libwebsockets/default.nix
+++ b/pkgs/development/libraries/libwebsockets/default.nix
@@ -26,6 +26,9 @@ let
 
     NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=unused-but-set-variable";
 
+    postInstall = "rm -rf ${placeholder "out"}/share/libwebsockets-test-server";
+    disallowedReferences = [ stdenv.cc.cc ];  # $out/share/libwebsockets-test-server/plugins/libprotocol_*.so refers to crtbeginS.o
+
     meta = with lib; {
       description = "Light, portable C library for websockets";
       longDescription = ''
@@ -42,8 +45,7 @@ let
     };
   };
 
-in
-rec {
+in {
   libwebsockets_3_1 = generic {
     sha256 = "1w1wz6snf3cmcpa3f4dci2nz9za2f5rrylxl109id7bcb36xhbdl";
     version = "3.1.0";