This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1{ 2 lib, 3 currentSystem, 4 hostpkgs ? { }, 5}: 6 7let 8 inherit (lib) filterAttrs pipe; 9 inherit (builtins) mapAttrs readDir; 10 pkgs = 11 { 12 inherit lib currentSystem; 13 config = { 14 debug = false; 15 }; 16 } 17 // lib.packagesFromDirectoryRecursive { 18 callPackage = lib.callPackageWith (pkgs // hostpkgs); 19 directory = ./packages; 20 } 21 // ( 22 let 23 isImpure = builtins ? currentSystem; 24 overrides = builtins.getEnv "DISTRO_OVERRIDES"; 25 in 26 if isImpure && overrides != "" then 27 pipe overrides [ 28 readDir 29 (filterAttrs (_name: type: type == "directory")) 30 (mapAttrs (name: _: /${overrides}/${name}/outputs)) 31 (mapAttrs ( 32 name: dir: 33 let 34 pkg = (mapAttrs (output: _: /${dir}/${output}) (readDir dir)) // { 35 type = "derivation"; 36 src = /${overrides}/${name}/src; 37 outPath = pkg.out; 38 }; 39 in 40 pkg 41 )) 42 ] 43 else 44 { } 45 ); 46in 47pkgs