1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-24 00:21:47 +03:00

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