xeals
3c8d8f0347
Some edge cases but appears to work on my machine (TM). Still TODO is setting up the job to generate and commit updates.
36 lines
799 B
Nix
36 lines
799 B
Nix
{ lib
|
|
, newScope
|
|
, stdenv
|
|
, fetchzip
|
|
, makeWrapper
|
|
, runCommand
|
|
|
|
, variant
|
|
}:
|
|
|
|
let
|
|
|
|
mkJetbrainsPlugins = import ../applications/editors/jetbrains/common-plugins.nix {
|
|
inherit lib stdenv fetchzip;
|
|
};
|
|
|
|
mkIdeaPlugins = import ../applications/editors/jetbrains/idea-plugins.nix {
|
|
inherit lib stdenv fetchzip;
|
|
};
|
|
|
|
jetbrainsWithPlugins = import ../applications/editors/jetbrains/wrapper.nix {
|
|
inherit lib makeWrapper runCommand;
|
|
};
|
|
|
|
in lib.makeScope newScope (self: lib.makeOverridable ({
|
|
jetbrainsPlugins ? mkJetbrainsPlugins self
|
|
, ideaPlugins ? mkIdeaPlugins self
|
|
}: ({ }
|
|
// jetbrainsPlugins // { inherit jetbrainsPlugins; }
|
|
// ideaPlugins // { inherit ideaPlugins; }
|
|
// {
|
|
inherit variant;
|
|
jetbrainsWithPlugins = jetbrainsWithPlugins self variant;
|
|
})
|
|
) { })
|