refactor: move packages to dedicated directory
This commit is contained in:
parent
5350355ea8
commit
79bbc86ef7
10 changed files with 21 additions and 6 deletions
13
package/default.nix
Normal file
13
package/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, ... }: {
|
||||
nixpkgs.overlays = [ (final: prev:
|
||||
builtins.listToAttrs (map (pkg: {
|
||||
name = pkg;
|
||||
value = let
|
||||
argsPath = ./${pkg}/args.nix;
|
||||
in final.callPackage ./${pkg}
|
||||
(if (builtins.pathExists argsPath) then
|
||||
(import argsPath final)
|
||||
else { });
|
||||
}) (builtins.attrNames (builtins.readDir ./.)))
|
||||
) ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue