nur-packages/pkgs/build-support/jetbrains/plugin.nix
xeals 8548791f31
Revert "jetbrains: update IDEA for generated plugins"
This reverts commit d851231ee9.

The change went ahead too early and the actual plugin generation system
is not complete.
2020-12-09 10:36:42 +11:00

34 lines
554 B
Nix

{ lib
, stdenv
, fetchzip
, jetbrainsPlatforms
}:
{ pluginId
, pname
, version
, versionId
, sha256
, filename ? "${pname}-${version}.zip"
}:
stdenv.mkDerivation {
inherit pname version;
src = fetchzip {
inherit sha256;
url = "https://plugins.jetbrains.com/files/${toString pluginId}/${toString versionId}/${filename}";
};
passthru = { inherit jetbrainsPlatforms; };
installPhase = ''
mkdir $out
cp -r * $out/
'';
meta = {
homepage = "https://plugins.jetbrains.com/plugin/${pluginId}-${lib.toLower pname}";
};
}