From 050359f8eeae13a3d6373dbbc4bdef42922d1e08 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 25 Sep 2021 17:17:49 +0200 Subject: [PATCH] nix: Fix nix not working with local LFS repositories --- modules/nix.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/nix.nix b/modules/nix.nix index 27a259f..4d31d55 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -28,7 +28,15 @@ in nix = { # nix with flake support - package = pkgs.nixUnstable; + # TODO: Remove override once nixUnstable that includes this commit is in nixpkgs + package = pkgs.nixUnstable.overrideAttrs (o: o // { + patches = [ + (pkgs.fetchpatch { + url = "https://github.com/nixos/nix/commit/d1bf7431bbb9c38bdb577661d8511d506a3955c4.patch"; + sha256 = "sha256-6ap0taVKrJU0VcpC4+AeqPBL5sLXKvBE5UX7I2YQqiU="; + }) + ]; + }); registry = with inputs; { nixpkgs.flake = nixpkgs;