diff --git a/nix/makeEnvironment.nix b/nix/makeEnvironment.nix index 171b7f4..90fb4e8 100644 --- a/nix/makeEnvironment.nix +++ b/nix/makeEnvironment.nix @@ -64,11 +64,18 @@ symlinkJoin { uiMetadata = callPackage ./uiMetadata.nix {}; in { - # channels = lib.mapAttrsToList uiMetadata.mkChannelUiMetadata channels; + # channels = lib.mapAttrsToList (name: channel: channel // { + # name = name; + # }) channels; + channels = []; kernels = map uiMetadata.mkKernelUiMetadata (attrValues builtKernels); - # other_packages = map uiMetadata.mkOtherPackageUiMetadata otherPackages; + other_packages = map (package: { + channel = "foo"; + attr = "bar"; + meta = if package ? "meta" then uiMetadata.chooseInterestingMeta package else {}; + }) evaluated.config.packages; }; ui_metadata_yaml = writeText "ui-metadata.yaml" (lib.generators.toYAML {} ui_metadata); diff --git a/nix/uiMetadata.nix b/nix/uiMetadata.nix index 21c0df7..059aa36 100644 --- a/nix/uiMetadata.nix +++ b/nix/uiMetadata.nix @@ -38,10 +38,6 @@ rec { language_server_names = contents.languageServerNames; }); - mkChannelUiMetadata = name: channel: channel // { - name = name; - }; - # This is duplicated from languages/common.nix, which we'd rather not import here packageName = p: if lib.isString p then p else p.name; @@ -65,10 +61,4 @@ rec { modes = kernel.modes; meta = chooseInterestingMeta kernel; }; - - mkOtherPackageUiMetadata = package: { - channel = package.channel; - attr = package.attr; - meta = if package.contents ? "meta" then chooseInterestingMeta package.contents else {}; - }; }