xeals
7959b877d9
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.
42 lines
726 B
Nix
42 lines
726 B
Nix
{ lib, stdenv, fetchzip }:
|
|
|
|
self:
|
|
|
|
let
|
|
|
|
commonBuild = import ../../../build-support/jetbrains/plugin.nix {
|
|
inherit lib stdenv fetchzip;
|
|
jetbrainsPlatforms = [
|
|
"clion"
|
|
"datagrip"
|
|
"goland"
|
|
"idea-community"
|
|
"idea-ultimate"
|
|
"phpstorm"
|
|
"pycharm-community"
|
|
"pycharm-professional"
|
|
"rider"
|
|
"ruby-mine"
|
|
"webstorm"
|
|
];
|
|
};
|
|
|
|
generateCommon = lib.makeOverridable ({
|
|
common ? ./manual-common-packages.nix
|
|
}: let
|
|
|
|
imported = import common {
|
|
inherit (self) callPackage;
|
|
};
|
|
|
|
super = imported;
|
|
|
|
overrides = { };
|
|
|
|
jetbrainsPlugins = super // overrides;
|
|
|
|
in jetbrainsPlugins // { inherit commonBuild; });
|
|
|
|
in generateCommon { }
|
|
|