jetbrains: add plugins to passthrough

This commit is contained in:
xeals 2020-10-18 18:06:49 +11:00
parent 7959b877d9
commit 9c4a68e3aa
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C
2 changed files with 4 additions and 3 deletions

View File

@ -63,7 +63,7 @@ rec {
}; };
# A functional Jetbrains IDE-with-plugins package set. # A functional Jetbrains IDE-with-plugins package set.
jetbrains = (pkgs.dontRecurseIntoAttrs rec { jetbrains = pkgs.dontRecurseIntoAttrs rec {
jetbrainsPluginsFor = variant: import ./pkgs/top-level/jetbrains-plugins.nix { jetbrainsPluginsFor = variant: import ./pkgs/top-level/jetbrains-plugins.nix {
inherit (pkgs) lib newScope stdenv fetchzip; inherit (pkgs) lib newScope stdenv fetchzip;
inherit variant; inherit variant;
@ -80,7 +80,7 @@ rec {
clionWithPlugins = clionPlugins.jetbrainsWithPlugins; clionWithPlugins = clionPlugins.jetbrainsWithPlugins;
ideaCommunityWithPlugins = ideaCommunityPlugins.jetbrainsWithPlugins; ideaCommunityWithPlugins = ideaCommunityPlugins.jetbrainsWithPlugins;
ideaUltimateWithPlugins = ideaUltimatePlugins.jetbrainsWithPlugins; ideaUltimateWithPlugins = ideaUltimatePlugins.jetbrainsWithPlugins;
}); };
libhl = pkgs.callPackage ./pkgs/development/libraries/libhl { }; libhl = pkgs.callPackage ./pkgs/development/libraries/libhl { };

View File

@ -21,7 +21,8 @@ in
assert assertMsg (length badPlugins == 0) errorMsg; assert assertMsg (length badPlugins == 0) errorMsg;
appendToName "with-plugins" (package.overrideAttrs (oldAttrs: { appendToName "with-plugins" (package.overrideAttrs (oldAttrs: {
inherit plugins; passthru = { inherit plugins; };
# TODO: Purely aesthetics, but link the plugin to its name instead of hash-name-version
installPhase = oldAttrs.installPhase + '' installPhase = oldAttrs.installPhase + ''
for plugin in $plugins; do for plugin in $plugins; do
ln -s "$plugin" "$out/$name/plugins/$(basename $plugin)" ln -s "$plugin" "$out/$name/plugins/$(basename $plugin)"