mirror of
https://github.com/yshui/picom.git
synced 2025-02-10 15:45:57 -05:00
build: add libepoxy
Add libepoxy dependency to CI manifest and Nix. For Nix, we need to set shellHook to workaround a NixOS limitation, see: https://github.com/NixOS/nixpkgs/issues/287763 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
dff77aae27
commit
fcd51e7373
3 changed files with 16 additions and 6 deletions
|
@ -12,6 +12,7 @@ packages:
|
||||||
- uthash
|
- uthash
|
||||||
- libconfig
|
- libconfig
|
||||||
- libglvnd
|
- libglvnd
|
||||||
|
- libepoxy
|
||||||
- dbus
|
- dbus
|
||||||
- pcre
|
- pcre
|
||||||
sources:
|
sources:
|
||||||
|
|
|
@ -3,3 +3,6 @@ root = true
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = 8
|
indent_size = 8
|
||||||
max_line_length = 90
|
max_line_length = 90
|
||||||
|
[*.nix]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
18
flake.nix
18
flake.nix
|
@ -24,16 +24,22 @@
|
||||||
overlays = [ overlay ];
|
overlays = [ overlay ];
|
||||||
in rec {
|
in rec {
|
||||||
inherit overlay overlays;
|
inherit overlay overlays;
|
||||||
defaultPackage = pkgs.picom.overrideAttrs {
|
defaultPackage = pkgs.picom.overrideAttrs (o: {
|
||||||
version = "11";
|
version = "11";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
};
|
buildInputs = o.buildInputs ++ [ pkgs.libepoxy ];
|
||||||
|
});
|
||||||
devShell = defaultPackage.overrideAttrs {
|
devShell = defaultPackage.overrideAttrs {
|
||||||
buildInputs = defaultPackage.buildInputs ++ [
|
buildInputs = defaultPackage.buildInputs ++ (with pkgs; [
|
||||||
pkgs.clang-tools_17
|
clang-tools_17
|
||||||
pkgs.llvmPackages_17.clang-unwrapped.python
|
llvmPackages_17.clang-unwrapped.python
|
||||||
];
|
]);
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
shellHook = ''
|
||||||
|
# Workaround a NixOS limitation on sanitizers:
|
||||||
|
# See: https://github.com/NixOS/nixpkgs/issues/287763
|
||||||
|
export LD_LIBRARY_PATH+=":/run/opengl-driver/lib"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue