Keyd : Add patch 545.

This commit is contained in:
Dmitry Voronin 2024-05-28 14:18:25 +03:00
parent 1123aa2f22
commit e1eb24f36c
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 23 additions and 1 deletions

View file

@ -3,6 +3,7 @@
# This way you can change something in package without recreating the whole build process. # This way you can change something in package without recreating the whole build process.
# More info: https://nixos.wiki/wiki/Overlays # More info: https://nixos.wiki/wiki/Overlays
{ ... }: { { ... }: {
# Use a different revision.
# nixpkgs.overlays = [ (final: prev: { # nixpkgs.overlays = [ (final: prev: {
# yt-dlp = prev.yt-dlp.overrideAttrs (old: { # yt-dlp = prev.yt-dlp.overrideAttrs (old: {
# src = prev.fetchFromGitHub { # src = prev.fetchFromGitHub {
@ -13,4 +14,14 @@
# }; # };
# }); # });
# })]; # })];
# Apply patch to a program.
# nixpkgs.overlays = [ (final: prev: {
# keyd = prev.keyd.overrideAttrs (old: {
# patches = (old.patches or []) ++ [(prev.fetchpatch {
# url = "https://patch-diff.githubusercontent.com/raw/rvaiya/keyd/pull/545.patch";
# hash = "sha256-aal8oAXws6DcpeCl7G9GMJQXeLDDbyotWFut0Rf82WI=";
# })];
# });
# })];
} }

11
overlay/Keyd.nix Normal file
View file

@ -0,0 +1,11 @@
# Add a patch for https://github.com/rvaiya/keyd/pull/545
{ ... }: {
nixpkgs.overlays = [ (final: prev: {
keyd = prev.keyd.overrideAttrs (old: {
patches = (old.patches or []) ++ [(prev.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/rvaiya/keyd/pull/545.patch";
hash = "sha256-aal8oAXws6DcpeCl7G9GMJQXeLDDbyotWFut0Rf82WI=";
})];
});
})];
}