nix: Fix nix not working with local LFS repositories

neomutt
Simon Bruder 2021-09-25 17:17:49 +02:00
parent ac03369ff8
commit 050359f8ee
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 9 additions and 1 deletions

View File

@ -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;