From e1d7178979a421bbfc83961edb962871acf5c791 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sun, 13 Jun 2021 12:15:09 -0500 Subject: [PATCH] init: common flake compat fixes for other nixpkgs fixes #315 --- overlays/various-flake-fixes.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 overlays/various-flake-fixes.nix diff --git a/overlays/various-flake-fixes.nix b/overlays/various-flake-fixes.nix new file mode 100644 index 0000000..2bb1f70 --- /dev/null +++ b/overlays/various-flake-fixes.nix @@ -0,0 +1,9 @@ +final: prev: { + # Since: https://github.com/NixOS/nixpkgs/pull/126137 + nix-direnv = + if builtins.hasAttr "enableFlakes" prev.nix-direnv.override.__functionArgs + then prev.nix-direnv.override { + enableFlakes = true; + } + else prev.nix-direnv; +}