influxdb2-provision: init at 1.0.0
This commit is contained in:
parent
d035a550f2
commit
192a8b8ee0
34
pkgs/servers/nosql/influxdb2/provision.nix
Normal file
34
pkgs/servers/nosql/influxdb2/provision.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, python3Packages
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "influxdb2-provision";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oddlama";
|
||||
repo = "influxdb2-provision";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-kgpUtXmwy9buupNzQj/6AIeN8XG2x0XjIckK3WIFC+I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ python3Packages.python python3Packages.influxdb-client ];
|
||||
|
||||
installPhase = ''
|
||||
install -Dm0555 influxdb2-provision.py $out/bin/influxdb2-provision
|
||||
wrapProgram $out/bin/influxdb2-provision --prefix PYTHONPATH : "$PYTHONPATH"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small utility to help provisioning influxdb2";
|
||||
homepage = "https://github.com/oddlama/influxdb2-provision";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [oddlama];
|
||||
mainProgram = "influxdb2-provision";
|
||||
};
|
||||
}
|
|
@ -26864,6 +26864,7 @@ with pkgs;
|
|||
influxdb2-server = callPackage ../servers/nosql/influxdb2 { };
|
||||
influxdb2-cli = callPackage ../servers/nosql/influxdb2/cli.nix { };
|
||||
influxdb2-token-manipulator = callPackage ../servers/nosql/influxdb2/token-manipulator.nix { };
|
||||
influxdb2-provision = callPackage ../servers/nosql/influxdb2/provision.nix { };
|
||||
# For backwards compatibility with older versions of influxdb2,
|
||||
# which bundled the server and CLI into the same derivation. Will be
|
||||
# removed in a few releases.
|
||||
|
|
Loading…
Reference in a new issue