mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pkg-config,
|
|
cmake,
|
|
gdk-pixbuf,
|
|
libGL,
|
|
libgbm,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "blur-effect";
|
|
version = "1.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sonald";
|
|
repo = "blur-effect";
|
|
tag = finalAttrs.version;
|
|
sha256 = "0cjw7iz0p7x1bi4vmwrivfidry5wlkgfgdl9wly88cm3z9ib98jj";
|
|
};
|
|
|
|
patches = [
|
|
# Pull cmake-4 fix:
|
|
# https://github.com/sonald/blur-effect/pull/7
|
|
(fetchpatch {
|
|
name = "cmake-4.patch";
|
|
url = "https://github.com/sonald/blur-effect/commit/76322ad8bd0e653726a6791eb8ebcc829cbb1b38.patch?full_index=1";
|
|
hash = "sha256-f0PBhfdrcLCZBzYx+j8+qIG9boW3S4CSyz+bS9vFKRc=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
libGL
|
|
libgbm
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/sonald/blur-effect";
|
|
description = "Off-screen image blurring utility using OpenGL ES 3.0";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.unix;
|
|
broken = stdenv.hostPlatform.isDarwin; # packages 'libdrm' and 'gbm' not found
|
|
maintainers = with lib.maintainers; [ romildo ];
|
|
mainProgram = "blur_image";
|
|
};
|
|
})
|