nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 2df7bcf5835502c82fcf6f13b7f786b1fb6ee32d
parent 14e6b32be695db72e48da72ca2f92239b3acbe8c
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 24 Nov 2022 17:08:22 +0300

Add influxdb-cxx

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/influxdb-cxx/default.nix | 24++++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -310,6 +310,7 @@ lib.makeScope newScope ( how-to-use-pvs-studio-free = callPackage ./misc/pvs-studio/how-to-use-pvs-studio-free.nix { }; huami-token = callPackage ./misc/huami-token { }; imsg-compat = callPackage ./misc/imsg-compat { }; + influxdb-cxx = callPackage ./misc/influxdb-cxx { }; ish = callPackage ./misc/ish { }; jenkins-cli = callPackage ./misc/jenkins-cli { }; lazyscraper = callPackage ./misc/lazyscraper { }; diff --git a/pkgs/misc/influxdb-cxx/default.nix b/pkgs/misc/influxdb-cxx/default.nix @@ -0,0 +1,24 @@ +{ lib, stdenv, fetchFromGitHub, cmake, curl, boost, catch2, trompeloeil }: + +stdenv.mkDerivation (finalAttrs: { + pname = "influxdb-cxx"; + version = "0.6.7"; + + src = fetchFromGitHub { + owner = "offa"; + repo = "influxdb-cxx"; + rev = "v${finalAttrs.version}"; + hash = "sha256-9CfjW+NEVGCfV+A0PDy9N6attE2eNdgKBXTzZ3g51FM="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ curl boost catch2 trompeloeil ]; + + meta = with lib; { + description = "InfluxDB C++ client library"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +})