From 4f4e21f148f5d5f2e0088b6eb6edc5297c5c43bc Mon Sep 17 00:00:00 2001 From: guangtao Date: Tue, 17 Oct 2023 00:48:11 -0700 Subject: [PATCH] chore: lib.errors.inputsSources --- lib/errors/inputsSource.nix | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/lib/errors/inputsSource.nix b/lib/errors/inputsSource.nix index 1814e6b..a4e2474 100644 --- a/lib/errors/inputsSource.nix +++ b/lib/errors/inputsSource.nix @@ -1,28 +1,13 @@ { lib }: list: -lib.filter (pair: lib.elem pair.name list) [ - { - name = "nixpkgs"; - url = "github:nixpkgs/nixpkgs-unstable"; - } - { - name = "makes"; - url = "github:fluidattacks/makes"; - } - { - name = "home-manager"; - url = "github:github:nix-community/home-manager"; - } - { - name = "microvm"; - url = "github:astro/microvm.nix"; - } - { - name = "topiary"; - url = "github:github:tweag/topiary"; - } - { - name = "nur"; - url = "github:nix-community/NUR"; - } -] +let + sources = (import ../../local/lock/flake.nix).inputs; + listSources = + map + (x: { + name = x; + url = sources.${x}.url; + }) + (lib.attrNames sources); +in +lib.filter (pair: lib.elem pair.name list) listSources