From bd445b3809e6e78910e1a07109ff8bf333a6efbe Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 16 Jan 2025 11:36:11 -0500 Subject: [PATCH] feat(flake): reduce duplicated inputs in flake.lock --- flake.lock | Bin 57618 -> 55607 bytes flake.nix | Bin 12165 -> 12999 bytes inputs/default.nix | 18 +++++++++++++++--- inputs/lib.nix | 5 ++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 551ce4dca677ed75383c7f82dc5ac7df5e07ac0c..53040a5fcbdf55dde546fefb633dc60ed5a4e41a 100644 GIT binary patch delta 500 zcmbPqh+f0nP>a? zd7B3ol}9-ldU`n*MWhuam6_%jhE5L55}V8_Wv!8xW?`6^Y-whelw_2gm}+KWX=0XQ znwnyomTY2aX_97XmST{WmYO_yqL(*NgURG`>ME1-mDo1lkqhJ8?4j{kX!AweL(GiP zlWjC)ColFBoxH$JeDVSnp~-9gxHms>l;@dz)I*&;y(qCDBQtsOLO@kOa`Og%S&qp|TLmWX4i^AvpENabvv0(G8B{UN$@MziljFNHH@_kjUp|!xnYX0FsjhxXUi?2=CPR@ zm>3(FO%9Zn)AH2!FRgGdk0=kyG)>QQ3n;F1E(;6N_DpjtE^*WjjBqXRC^gI|D^7Qr zTo@)kdBRHL$+11`>Xs&{sb;3;X=Vn-Mk$tt#%ZYrsc9ybi7APR<|f7#1}0|4rbz}# zlOMYKY@V=ElVx(u6tT&=QaqDym+);qxOM~U5!WAa;v|mK)NVo`+PmAcFS*#R zV;kEvDCG%>3N@X=6B6N}5>ge>a!9-(f`n9F5zp`^RPcxp;_@Z6NJw32r5TNWJM)|0 z%zpPx^SvLNAL%_X85s9q1&ch!M1;Mb{?X0qh7rqyhoI^6Zg|==;o}U2mn6m^jTa=OX+%c|YaHPW)gu~kxr(UoI@0GTp)8j3%YPe9zm%Zad z5`olEXKR_3RBBmp`{%wKEt&ztqMIyNQ3Fn)K_gf+^LeHRnO?BA%Ox5-4xf?;q5u~_ zK@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ix +++ b/inputs/default.nix @@ -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"; }; }; diff --git a/inputs/lib.nix b/inputs/lib.nix index 112c802e..adc160b7 100644 --- a/inputs/lib.nix +++ b/inputs/lib.nix @@ -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";});