Skip to content

Commit

Permalink
init: common flake compat fixes for other nixpkgs
Browse files Browse the repository at this point in the history
fixes #315
  • Loading branch information
David Arnold committed Jun 14, 2021
1 parent a7c2046 commit e1d7178
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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;
}

0 comments on commit e1d7178

Please sign in to comment.