flake: remove unnecessary inherit

This commit is contained in:
Donovan Glover 2024-10-09 20:16:53 -04:00
parent 2bd906c67b
commit f49a6b9b9d
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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 (
@ -83,7 +83,7 @@
value = import file {
inherit self;
pkgs = x86_64-linux;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
}) (listFilesRecursive ./tests)
);