Skip to content

Commit

Permalink
shell: expose
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold committed Dec 29, 2020
1 parent d316304 commit 56d6927
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
inherit (lib) all removeSuffix recursiveUpdate genAttrs filterAttrs
mapAttrs;
inherit (utils) pathsToImportedAttrs genPkgset overlayPaths modules
genPackages pkgImport;
genPackages pkgImport devshells;

utils = import ./lib/utils.nix { inherit lib; };

Expand All @@ -44,6 +44,7 @@
overlays = pathsToImportedAttrs overlayPaths;

nixosModules = modules;
devshellModules = devshells;

templates.flk.path = ./.;

Expand Down
7 changes: 7 additions & 0 deletions lib/utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ in
(recursiveUpdate cachixAttrs modulesAttrs)
profilesAttrs;

devshells =
let
# shells
shellList = import ../shells/list.nix;
in
pathsToImportedAttrs shellList;

genPackages = { overlay, overlays, pkgs }:
let
packages = overlay pkgs pkgs;
Expand Down
3 changes: 3 additions & 0 deletions shells/list.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
./flk
]

0 comments on commit 56d6927

Please sign in to comment.