From 3dca2fd61efa64b3b8d521cb2977ebc40d24e541 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 23 Oct 2022 00:01:55 +0300 Subject: [PATCH] Nix: override wayland-protocols --- flake.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 67c18b52..da71b374 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,20 @@ "aarch64-linux" "x86_64-linux" ]; - pkgsFor = nixpkgs.legacyPackages; + + pkgsFor = genSystems (system: import nixpkgs { + inherit system; + overlays = [(_: prev: { + wayland-protocols = prev.wayland-protocols.overrideAttrs (old: rec { + version = "1.27"; + src = prev.fetchurl { + url = "https://gitlab.freedesktop.org/wayland/${old.pname}/-/releases/${version}/downloads/${old.pname}-${version}.tar.xz"; + hash = "sha256-kEbxCkJdTioAlloDrPtrP7V1pWUDrHLCuGghxpZTN1w="; + }; + }); + })]; + }); + mkDate = longDate: (lib.concatStringsSep "-" [ (builtins.substring 0 4 longDate) (builtins.substring 4 2 longDate)