mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
11 lines
298 B
Nix
11 lines
298 B
Nix
{ self, lib, pkgs, ... }:
|
|
let
|
|
mkPackages = names: pkgs: builtins.listToAttrs (map
|
|
(name: {
|
|
inherit name;
|
|
value = pkgs.callPackage "${self}/pkgs/${name}" { inherit self name; };
|
|
})
|
|
names);
|
|
packageNames = lib.swarselsystems.readNix "pkgs";
|
|
in
|
|
mkPackages packageNames pkgs
|