a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
19 lines
379 B
Nix
19 lines
379 B
Nix
{
|
|
# list of package attribute names to get at run time
|
|
packageNamesAtRuntimeJsonPath
|
|
,
|
|
}:
|
|
let
|
|
pkgs = import <nixpkgs> { };
|
|
|
|
getPkg = pkgName: pkgs.${pkgName};
|
|
|
|
packageNamesAtRuntime = builtins.fromJSON (builtins.readFile packageNamesAtRuntimeJsonPath);
|
|
|
|
runtime = map getPkg packageNamesAtRuntime;
|
|
|
|
in
|
|
pkgs.symlinkJoin {
|
|
name = "symlink-farm";
|
|
paths = runtime;
|
|
}
|