init: common flake compat fixes for other nixpkgs

fixes #315
This commit is contained in:
David Arnold 2021-06-13 12:15:09 -05:00
parent a7c20465ec
commit e1d7178979

View file

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