Skip to content

Commit f49a6b9

Browse files
committed
flake: remove unnecessary inherit
1 parent 2bd906c commit f49a6b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: flake.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
let
3737
inherit (nixpkgs.lib) nixosSystem;
3838
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
39-
inherit (nixpkgs.legacyPackages) x86_64-linux aarch64-linux;
4039
inherit (builtins) listToAttrs map replaceStrings;
4140

42-
nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
4341
forAllSystems =
4442
function:
4543
nixpkgs.lib.genAttrs [
4644
"x86_64-linux"
4745
"aarch64-linux"
4846
] (system: function nixpkgs.legacyPackages.${system});
47+
48+
nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
4949
in
5050
{
5151
packages = forAllSystems (
@@ -83,7 +83,7 @@
8383

8484
value = import file {
8585
inherit self;
86-
pkgs = x86_64-linux;
86+
pkgs = nixpkgs.legacyPackages.x86_64-linux;
8787
};
8888
}) (listFilesRecursive ./tests)
8989
);

0 commit comments

Comments
 (0)