mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
901 B
Nix
35 lines
901 B
Nix
{ 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 = "Small utility to help provisioning influxdb2";
|
|
homepage = "https://github.com/oddlama/influxdb2-provision";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [oddlama];
|
|
mainProgram = "influxdb2-provision";
|
|
};
|
|
}
|