flake.nix provides pipewire paths through env
This commit is contained in:
parent
680b3500b9
commit
eabd640e2d
1 changed files with 20 additions and 4 deletions
24
flake.nix
24
flake.nix
|
|
@ -22,7 +22,7 @@
|
||||||
# list directory contents as absolute paths
|
# list directory contents as absolute paths
|
||||||
lsAbsolute = with builtins;
|
lsAbsolute = with builtins;
|
||||||
path:
|
path:
|
||||||
map (name: toPath path + toPath name) (attrNames (readDir path));
|
map (name: (toPath path) + "/" + name) (attrNames (readDir path));
|
||||||
in {
|
in {
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
dorne = final.haskellPackages.developPackage {
|
dorne = final.haskellPackages.developPackage {
|
||||||
|
|
@ -47,6 +47,7 @@
|
||||||
|
|
||||||
# C Dependencies
|
# C Dependencies
|
||||||
pipewire
|
pipewire
|
||||||
|
pipewire.dev
|
||||||
|
|
||||||
# Language/Development Tooling
|
# Language/Development Tooling
|
||||||
clang-tools
|
clang-tools
|
||||||
|
|
@ -58,9 +59,24 @@
|
||||||
shell = "${pkgs.bash}/bin/bash";
|
shell = "${pkgs.bash}/bin/bash";
|
||||||
|
|
||||||
# SPA API is provided by pipewire's "dev" derivation output
|
# SPA API is provided by pipewire's "dev" derivation output
|
||||||
C_INCLUDE_PATH =
|
NIX_CFLAGS_COMPILE = let
|
||||||
builtins.concatStringSep ":"
|
# libpipewire (and libspa)
|
||||||
(lsAbsolute "${pkgs.pipewire.dev}/include");
|
Ipipewire =
|
||||||
|
lsAbsolute "${pkgs.pipewire.dev}/include";
|
||||||
|
|
||||||
|
Ivendor =
|
||||||
|
builtins.map
|
||||||
|
(x: "-isystem ${x}")
|
||||||
|
Ipipewire;
|
||||||
|
in
|
||||||
|
builtins.concatStringsSep " " ([
|
||||||
|
(builtins.getEnv
|
||||||
|
"NIX_CFLAGS_COMPILE")
|
||||||
|
]
|
||||||
|
++ Ivendor);
|
||||||
|
|
||||||
|
DORNE_LDFLAGS = let
|
||||||
|
in "-L${pkgs.pipewire}/lib";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue