Skip to content

Commit

Permalink
expose packages & devshells in flake check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 2, 2024
1 parent 074bf2e commit 7021f5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
lib,
config,
pkgs,
self',
...
}:
{
Expand All @@ -35,6 +36,8 @@
inherit pkgs;
inherit (inputs) self;
};
packages = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages;
devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells;
in
lib.optionalAttrs pkgs.stdenv.isLinux {
t00-simple = import ./tests/t00-simple.nix testArgs;
Expand All @@ -45,7 +48,9 @@
}
// {
clippy = config.packages.harmonia.override { enableClippy = true; };
};
}
// packages
// devShells;
devShells.default = pkgs.callPackage ./shell.nix { };

treefmt = {
Expand Down

0 comments on commit 7021f5c

Please sign in to comment.