jetbrains: add plugins to passthrough
This commit is contained in:
parent
7959b877d9
commit
9c4a68e3aa
@ -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 { };
|
||||||
|
|
||||||
|
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user