Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

flake-template: provide a compatibility shim for older Nix installations #115

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/flake-template.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
{ld_library_path}
}};
}});

# Compatibility with older Nix installations that don't check for `devShells.<arch>.default` first.
devShell = forAllSystems ({{ system, ... }}: self.devShells.${{system}}.default);
}};
}}