From 1c87d059b283578acb2cdd04113094629a136bbb Mon Sep 17 00:00:00 2001 From: ibizaman Date: Thu, 12 Mar 2026 23:51:51 +0100 Subject: [PATCH] flake: allow patches on aarch64-linux too --- flake.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 94eb9e2..daf5956 100644 --- a/flake.nix +++ b/flake.nix @@ -23,17 +23,19 @@ let shbPatches = system: - nixpkgs.legacyPackages.${system}.lib.optionals (system == "x86_64-linux") [ - # Get rid of lldap patches when https://github.com/NixOS/nixpkgs/pull/425923 is merged. - ./patches/lldap.patch - ./patches/0001-nixos-borgbackup-add-option-to-override-state-direct.patch + nixpkgs.legacyPackages.${system}.lib.optionals + (system == "x86_64-linux" || system == "aarch64-linux") + [ + # Get rid of lldap patches when https://github.com/NixOS/nixpkgs/pull/425923 is merged. + ./patches/lldap.patch + ./patches/0001-nixos-borgbackup-add-option-to-override-state-direct.patch - # Leaving commented out as an example. - # (originPkgs.fetchpatch { - # url = "https://github.com/NixOS/nixpkgs/pull/317107.patch"; - # hash = "sha256-hoLrqV7XtR1hP/m0rV9hjYUBtrSjay0qcPUYlKKuVWk="; - # }) - ]; + # Leaving commented out as an example. + # (originPkgs.fetchpatch { + # url = "https://github.com/NixOS/nixpkgs/pull/317107.patch"; + # hash = "sha256-hoLrqV7XtR1hP/m0rV9hjYUBtrSjay0qcPUYlKKuVWk="; + # }) + ]; patchNixpkgs = {