Skip to content

Commit

Permalink
chore: lib.errors.inputsSources
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Oct 17, 2023
1 parent bf6d0e2 commit 4f4e21f
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions lib/errors/inputsSource.nix
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4f4e21f

Please sign in to comment.