From 3bdfb04a9d33bef5f0e2aeae7b6da95a69ae4c35 Mon Sep 17 00:00:00 2001 From: Michael Pacheco Date: Fri, 28 Apr 2023 22:31:09 -0700 Subject: [PATCH] FEAT: nix: swaylock-effects: add jirutka/swaylock-effects#4 Signed-off-by: Michael Pacheco --- flake.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6a6ddbd..f0a2eab 100644 --- a/flake.nix +++ b/flake.nix @@ -36,7 +36,7 @@ }; overlayUnstable = final: prev: { inherit unstable; }; baseModules = [ - ({ config, pkgs, ... }: { + ({ config, pkgs, lib, ... }: { nixpkgs.overlays = [ overlayUnstable inputs.hyprland.overlays.default @@ -62,6 +62,22 @@ ]; }); + swaylock-effects-pr = pkgs.unstable.swaylock-effects.overrideAttrs + (oldAttrs: { + version = + lib.strings.concatStrings [ oldAttrs.version "-unstable" ]; + patches = let + pr_4 = builtins.fetchurl { + url = + "https://patch-diff.githubusercontent.com/raw/jirutka/swaylock-effects/pull/4.patch"; + sha256 = + "1d76clgb7f22z492cvp6qvpff3n0mma2mpa130ill8ysx5lqigb9"; + }; + in (oldAttrs.patches or [ ]) ++ [ + pr_4 + ]; + }); + }) ];