1{
2 i3lock-color,
3 lib,
4 stdenv,
5 fetchFromGitHub,
6 fetchpatch,
7 libGL,
8}:
9
10i3lock-color.overrideAttrs (oldAttrs: rec {
11 pname = "i3lock-blur";
12 version = "2.10";
13
14 src = fetchFromGitHub {
15 owner = "karulont";
16 repo = "i3lock-blur";
17 rev = version;
18 sha256 = "sha256-rBQHYVD9rurzTEXrgEnOziOP22D2EePC1+EV9Wi2pa0=";
19 };
20
21 patches = [
22 # Pull patch pending upstream inclusion for -fno-common toolchain
23 # support: https://github.com/karulont/i3lock-blur/pull/22
24 (fetchpatch {
25 name = "fno-common.patch";
26 url = "https://github.com/karulont/i3lock-blur/commit/ec8fe0e7f7d78bf445602ed517efd5c324bb32f7.patch";
27 sha256 = "sha256-0hXUr+ZEB1tpI3xw80/hGzKyeGuna4CQmEvK6t0VBqU=";
28 })
29 ];
30
31 buildInputs = oldAttrs.buildInputs ++ [ libGL ];
32
33 meta = with lib; {
34 description = "Improved screenlocker based upon XCB and PAM with background blurring filter";
35 homepage = "https://github.com/karulont/i3lock-blur/";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ ];
38 platforms = platforms.all;
39 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/i3lock-blur.x86_64-darwin
40 };
41})