mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
30 lines
662 B
Nix
30 lines
662 B
Nix
{ inputs', ... }:
|
|
let
|
|
inherit (inputs'.unstable) lib;
|
|
pkgs = inputs'.unstable.legacyPackages;
|
|
in
|
|
lib.pipe ./. [
|
|
builtins.readDir
|
|
builtins.attrNames
|
|
(builtins.filter (x: x != "_default.nix"))
|
|
(map (
|
|
x:
|
|
let
|
|
fullPath = ./. + "/${x}";
|
|
in
|
|
{
|
|
${lib.removeSuffix ".nix" x} = lib.callPackageWith (
|
|
pkgs
|
|
// pkgs.xorg
|
|
// {
|
|
inherit inputs';
|
|
self' = inputs'.self;
|
|
# npins sources if i ever use them
|
|
# sources = lib.mapAttrs (_: pkgs.npins.mkSource) (lib.importJSON "${self}/packages/sources.json").pins;
|
|
}
|
|
) fullPath { };
|
|
}
|
|
))
|
|
|
|
lib.mergeAttrsList
|
|
]
|