From f44ed8abd41d7fcd86a632ffb9c800f4665decbe Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Thu, 7 Jan 2021 22:26:58 +0000 Subject: [PATCH] libplacebo: fixup glslang headers path See: https://github.com/NixOS/nixpkgs/issues/108723 Signed-off-by: Arthur Gautier --- pkgs/development/libraries/libplacebo/default.nix | 4 ++++ .../libraries/libplacebo/glsl-import.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 pkgs/development/libraries/libplacebo/glsl-import.patch diff --git a/pkgs/development/libraries/libplacebo/default.nix b/pkgs/development/libraries/libplacebo/default.nix index ac8552fa9ef4..7d120f604d8d 100644 --- a/pkgs/development/libraries/libplacebo/default.nix +++ b/pkgs/development/libraries/libplacebo/default.nix @@ -17,6 +17,10 @@ stdenv.mkDerivation rec { pname = "libplacebo"; version = "2.72.2"; + patches = [ + ./glsl-import.patch + ]; + src = fetchFromGitLab { domain = "code.videolan.org"; owner = "videolan"; diff --git a/pkgs/development/libraries/libplacebo/glsl-import.patch b/pkgs/development/libraries/libplacebo/glsl-import.patch new file mode 100644 index 000000000000..f2ef362c65b1 --- /dev/null +++ b/pkgs/development/libraries/libplacebo/glsl-import.patch @@ -0,0 +1,13 @@ +diff --git a/src/glsl/glslang.cc b/src/glsl/glslang.cc +index f701acc..c64cbf5 100644 +--- a/src/glsl/glslang.cc ++++ b/src/glsl/glslang.cc +@@ -26,7 +26,7 @@ extern "C" { + + #include + #include +-#include ++#include + + #include "glslang.h" +