From c4de45021759e9c384485a451dfdf9c1d73f04ea Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 17 Jan 2025 22:56:16 +0900 Subject: nix: do not force static linking on nix In a typical Nix or NixOS-based setup, the entire /nix/store directory is available to the sandbox. Signed-off-by: Ophestra --- flake.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 0277975a..6d8e66eb 100644 --- a/flake.nix +++ b/flake.nix @@ -166,8 +166,28 @@ go gcc ] - ++ fortify.buildInputs - ++ fortify.nativeBuildInputs; + # buildInputs + ++ ( + with pkgsStatic; + [ + musl + libffi + acl + wayland + wayland-protocols + ] + ++ (with xorg; [ + libxcb + libXau + libXdmcp + ]) + ) + # nativeBuildInputs + ++ [ + pkg-config + wayland-scanner + makeBinaryWrapper + ]; }; fhs = fhs.env; -- cgit v1.3.1