feat(flake): reduce duplicated inputs in flake.lock
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-16 11:36:11 -05:00
parent 22d186472e
commit bd445b3809
4 changed files with 19 additions and 4 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -29,7 +29,11 @@ let
repo = "nurl";
};
# These are here to make sure all 'systems' are the same
# These are here to make sure all 'systems' and popular inputs are the same
flake-compat = mkInput {
owner = "edolstra";
repo = "flake-compat";
};
flake-utils = mkInput {
owner = "numtide";
repo = "flake-utils";
@ -47,6 +51,15 @@ let
owner = "nix-community";
repo = "lib-aggregate";
};
nix-github-actions = mkDep {
owner = "nix-community";
repo = "nix-github-actions";
};
pre-commit-hooks = mkDep {
owner = "cachix";
repo = "git-hooks.nix";
inputs.flake-compat.follows = "flake-compat";
};
};
overlays = {
@ -133,11 +146,10 @@ let
repo = "hyprpaper";
inputs = {
hyprgraphics.follows = "hyprland/hyprgraphics";
hyprlang.follows = "hyprland/hyprlang";
hyprutils.follows = "hyprland/hyprutils";
hyprwayland-scanner.follows = "hyprland/hyprwayland-scanner";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};

View file

@ -34,11 +34,14 @@ in rec {
info
{inherit type;}
(mkOverride "systems")
(mkOverride "flake-compat")
(mkOverride "flake-utils")
(mkOverride "flake-parts")
(mkOverride "treefmt-nix")
(mkOverride "lib-aggregate")
(mkOverride "nix-eval-jobs")
(mkOverride "nix-github-actions")
(mkOverride "pre-commit-hooks")
(mkOverride "treefmt-nix")
];
mkDep = info: mkInput (recursiveUpdate info {inputs.nixpkgs.follows = "nixpkgs";});