nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 pkg-config,
7 cmake,
8 gdk-pixbuf,
9 libGL,
10 libgbm,
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "blur-effect";
15 version = "1.1.3";
16
17 src = fetchFromGitHub {
18 owner = "sonald";
19 repo = "blur-effect";
20 tag = finalAttrs.version;
21 sha256 = "0cjw7iz0p7x1bi4vmwrivfidry5wlkgfgdl9wly88cm3z9ib98jj";
22 };
23
24 patches = [
25 # Pull cmake-4 fix:
26 # https://github.com/sonald/blur-effect/pull/7
27 (fetchpatch {
28 name = "cmake-4.patch";
29 url = "https://github.com/sonald/blur-effect/commit/76322ad8bd0e653726a6791eb8ebcc829cbb1b38.patch?full_index=1";
30 hash = "sha256-f0PBhfdrcLCZBzYx+j8+qIG9boW3S4CSyz+bS9vFKRc=";
31 })
32 ];
33
34 nativeBuildInputs = [
35 pkg-config
36 cmake
37 ];
38
39 buildInputs = [
40 gdk-pixbuf
41 libGL
42 libgbm
43 ];
44
45 meta = {
46 homepage = "https://github.com/sonald/blur-effect";
47 description = "Off-screen image blurring utility using OpenGL ES 3.0";
48 license = lib.licenses.gpl3;
49 platforms = lib.platforms.unix;
50 broken = stdenv.hostPlatform.isDarwin; # packages 'libdrm' and 'gbm' not found
51 maintainers = with lib.maintainers; [ romildo ];
52 mainProgram = "blur_image";
53 };
54})