nixdirfmt + getAlias function

This commit is contained in:
kat witch 2021-08-30 03:31:55 +01:00
parent 589bef29fa
commit 5da38c626d
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
7 changed files with 89 additions and 83 deletions

View file

@ -1,6 +1,6 @@
let
# we don't have lib without sources, so we need optionalAttrs
optionalAttrs = cond: as: if cond then as else {};
optionalAttrs = cond: as: if cond then as else { };
# Sources are from niv.
sources = import ./nix/sources.nix // optionalAttrs (builtins.pathExists ./overlays/exprs/default.nix) {
katexprs = ./overlays/exprs;