mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
packages: create by-name system
This commit is contained in:
parent
0b248d82ca
commit
bd9049f90a
2 changed files with 12 additions and 1 deletions
11
nix/packages/by-name.nix
Normal file
11
nix/packages/by-name.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
sources ? import ../sources.nix,
|
||||||
|
pkgs ? import sources.nixpkgs {},
|
||||||
|
}: let
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
in
|
||||||
|
lib.mapAttrs
|
||||||
|
(name: _: pkgs.callPackage (./by-name + "/${name}/package.nix") {})
|
||||||
|
(
|
||||||
|
lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./by-name)
|
||||||
|
)
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
args:
|
args:
|
||||||
|
|
||||||
import ./top-level.nix args
|
import ./top-level.nix args
|
||||||
|
// import ./by-name.nix args
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue