mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
obs-studio-plugins.obs-composite-blur: cleanup, fix
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
obs-studio,
|
||||
cmake,
|
||||
}:
|
||||
@@ -10,6 +11,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "obs-composite-blur";
|
||||
version = "1.5.2";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FiniteSingularity";
|
||||
repo = "obs-composite-blur";
|
||||
@@ -17,6 +21,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-wT49bCxik8mrg+YleNelOPQQzqcYQR7ZSnzvPXA5D3g=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with glibc >= 2.43 (C23 const-preserving strrchr):
|
||||
# https://github.com/FiniteSingularity/obs-composite-blur/pull/138
|
||||
(fetchpatch {
|
||||
name = "fix-strrchr-discarded-qualifiers.patch";
|
||||
url = "https://github.com/FiniteSingularity/obs-composite-blur/commit/4773875d2ac1335f752b31ca4fb16229bff1a4aa.patch";
|
||||
hash = "sha256-V9Mt48a4dALX3t4nXz45tNtKrlEgznjdyPeXYPMpGno=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
obs-studio
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user