nur-packages/pkgs/applications/editors/jetbrains/idea-plugins.nix
xeals 7959b877d9
jetbrains: rework following the Emacs builder
This commit moves a lot of the heavy lifting out of callPackage and back
into regular import, following conventions from upstream Nixpkgs. It
allows for a clearer and less magic definition of new packages,
particularly by downstream, as well, by exposing the *Build package
callers in the attribute set.
2020-10-18 17:47:48 +11:00

30 lines
519 B
Nix

{ lib, stdenv, fetchzip }:
self:
let
ideaBuild = import ../../../build-support/jetbrains/plugin.nix {
inherit lib stdenv fetchzip;
jetbrainsPlatforms = [ "idea-community" "idea-ultimate" ];
};
generateIdea = lib.makeOverridable ({
idea ? ./manual-idea-packages.nix
}: let
imported = import idea {
inherit (self) callPackage;
};
super = imported;
overrides = { };
ideaPlugins = super // overrides;
in ideaPlugins // { inherit ideaBuild; });
in generateIdea { }