Skip to content

Commit

Permalink
remove flake-utils
Browse files Browse the repository at this point in the history
There is no reason to be sending downstream dependencies for a for
loop.
  • Loading branch information
toastal committed Apr 1, 2024
1 parent 3e0abf9 commit 3515b0a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 62 deletions.
44 changes: 0 additions & 44 deletions flake.lock

This file was deleted.

42 changes: 24 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{

inputs.flake-utils.url = "github:numtide/flake-utils";

outputs =
{ flake-utils, self }:
flake-utils.lib.eachDefaultSystem (
system:
let
result = import ./default.nix { inherit system; };
in
{
packages = result.packages // {
default = result;
};
{ self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;

apps.default = {
result = forAllSystems (system: import ./default.nix { inherit system; });
in
{
packages = forAllSystems (
system:
let
packages = result.${system}.packages;
in
packages // { default = packages.nixfmt; }
);

apps = forAllSystems (system: {
default = {
type = "app";
program = "${result}/bin/nixfmt";
program = nixpkgs.lib.getExe self.packages.${system}.default;
};
});

checks = forAllSystems (system: result.${system}.checks);

checks = result.checks;
}
);
devShells = forAllSystems (system: {
default = result.${system}.shell;
});
};
}

0 comments on commit 3515b0a

Please sign in to comment.