init commit
This commit is contained in:
commit
8f7a75814d
21 changed files with 1073 additions and 0 deletions
21
overlays/default.nix
Normal file
21
overlays/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ flake, ... }:
|
||||
|
||||
let
|
||||
inherit (flake) inputs;
|
||||
inherit (inputs) self;
|
||||
|
||||
pkgsDir = ../packages; # This must be absolute or relative to this file
|
||||
|
||||
# List only subdirs with default.nix
|
||||
packageDirs = builtins.filter (name: builtins.pathExists (pkgsDir + "/${name}/default.nix")) (
|
||||
builtins.attrNames (builtins.readDir pkgsDir)
|
||||
);
|
||||
|
||||
in
|
||||
self: super:
|
||||
builtins.listToAttrs (
|
||||
map (name: {
|
||||
name = name;
|
||||
value = self.callPackage (pkgsDir + "/${name}") { };
|
||||
}) packageDirs
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue