Skip to content

Commit

Permalink
flake: remove unnecessary inherit
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Oct 10, 2024
1 parent 2bd906c commit f49a6b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
let
inherit (nixpkgs.lib) nixosSystem;
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
inherit (nixpkgs.legacyPackages) x86_64-linux aarch64-linux;
inherit (builtins) listToAttrs map replaceStrings;

nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});

nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
in
{
packages = forAllSystems (
Expand Down Expand Up @@ -83,7 +83,7 @@

value = import file {
inherit self;
pkgs = x86_64-linux;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
}) (listFilesRecursive ./tests)
);
Expand Down

0 comments on commit f49a6b9

Please sign in to comment.