all: initial port from private config
This commit is contained in:
30
pkgs/applications/editors/jetbrains/build-plugin.nix
Normal file
30
pkgs/applications/editors/jetbrains/build-plugin.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ stdenv
|
||||
, fetchzip
|
||||
, jetbrainsPlatforms
|
||||
}:
|
||||
|
||||
{ pluginId
|
||||
, pname
|
||||
, version
|
||||
, versionId
|
||||
, sha256
|
||||
, filename ? "${pname}-${version}.zip"
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version jetbrainsPlatforms;
|
||||
|
||||
src = fetchzip {
|
||||
inherit sha256;
|
||||
url = "https://plugins.jetbrains.com/files/${toString pluginId}/${toString versionId}/${filename}";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r * $out/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://plugins.jetbrains.com/plugin/${pluginId}-${stdenv.lib.toLower pname}";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user