From 077bea9c342dc05c678173cebb7a2538ef1530ad Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Wed, 3 Sep 2025 02:32:59 +1000 Subject: [PATCH] fix pipewire SDL API headers not found --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index 85cf0a7..dec9bb2 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,11 @@ inherit system; overlays = builtins.attrValues self.overlays; })); + + # list directory contents as absolute paths + lsAbsolute = with builtins; + path: + map (name: toPath path + toPath name) (attrNames (readDir path)); in { overlays.default = final: prev: { dorne = final.haskellPackages.developPackage { @@ -42,6 +47,7 @@ # C Dependencies pipewire + # Language/Development Tooling clang-tools bear # clang compile_commands.json @@ -50,6 +56,11 @@ ]; shell = "${pkgs.bash}/bin/bash"; + + # SPA API is provided by pipewire's "dev" derivation output + C_INCLUDE_PATH = + builtins.concatStringSep ":" + (lsAbsolute "${pkgs.pipewire.dev}/include"); }; } );