mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-06 23:31:34 +00:00
reposilitePlugins: init at 3.5.19 (#355505)
This commit is contained in:
parent
3dff76a8ee
commit
fd9961b8a4
49
pkgs/by-name/re/reposilite/plugins.nix
Normal file
49
pkgs/by-name/re/reposilite/plugins.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
generateSplicesForMkScope,
|
||||
makeScopeWithSplicing',
|
||||
}:
|
||||
makeScopeWithSplicing' {
|
||||
otherSplices = generateSplicesForMkScope;
|
||||
f =
|
||||
self:
|
||||
{
|
||||
fetchPlugin = self.callPackage (
|
||||
{
|
||||
lib,
|
||||
fetchurl,
|
||||
reposilite,
|
||||
}:
|
||||
lib.makeOverridable (
|
||||
{ name, hash }:
|
||||
let
|
||||
inherit (reposilite) version;
|
||||
|
||||
fancyName = lib.concatStrings [
|
||||
(lib.toUpper (builtins.substring 0 1 name))
|
||||
(builtins.substring 1 ((builtins.stringLength name) - 1) name)
|
||||
];
|
||||
in
|
||||
fetchurl {
|
||||
url = "https://maven.reposilite.com/releases/com/reposilite/plugin/${name}-plugin/${version}/${name}-plugin-${version}-all.jar";
|
||||
inherit version hash;
|
||||
|
||||
meta = {
|
||||
description = "${fancyName} plugin for Reposilite.";
|
||||
homepage = "https://github.com/dzikoysk/reposilite";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ uku3lig ];
|
||||
inherit (reposilite.meta) platforms;
|
||||
};
|
||||
}
|
||||
)
|
||||
) { };
|
||||
}
|
||||
// builtins.mapAttrs (name: hash: self.fetchPlugin { inherit name hash; }) {
|
||||
checksum = "sha256-ocvjjcrZW8I7hMdWiUn36XEbx3TqNYi0okemo9zWelA=";
|
||||
groovy = "sha256-2NSTaivUAUMnAPHNqTNHWGqA8AF8jU9CE2ab9VGIFLo=";
|
||||
migration = "sha256-+BfbLEy2gc81HVCyI2JREIIYMirKwPV48shMBAMbWlU=";
|
||||
prometheus = "sha256-aukYUIS6S37ut9h+gO/JLrBUX/6RND5BhLqsrArxSUo=";
|
||||
swagger = "sha256-zD2ihVEfQeH3S1df3o2gF19kGIODW2yIRWCGbk4npJY=";
|
||||
};
|
||||
}
|
|
@ -10687,6 +10687,8 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
reposilitePlugins = recurseIntoAttrs (callPackage ../by-name/re/reposilite/plugins.nix {});
|
||||
|
||||
rhino = callPackage ../development/libraries/java/rhino {
|
||||
javac = jdk8;
|
||||
jvm = jre8;
|
||||
|
|
Loading…
Reference in a new issue