From c0deae62b25cc828ec8ad1963a487bbffb253022 Mon Sep 17 00:00:00 2001 From: Daniel Kirk Date: Thu, 12 Oct 2023 13:06:20 +0000 Subject: [PATCH] Updated tdengine derivation --- overlays/tdengine/default.nix | 54 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/overlays/tdengine/default.nix b/overlays/tdengine/default.nix index 2e9d200a..6b858405 100644 --- a/overlays/tdengine/default.nix +++ b/overlays/tdengine/default.nix @@ -1,36 +1,36 @@ { - self, nixpkgs, stdenv, fetchFromGitHub -}: -stdenv.mkDerivation { - name = "TDengine-client"; - version = "3.0.4.2"; +}: rec { + default = stdenv.mkDerivation { + name = "TDengine-client"; + version = "3.0.4.2"; - src = fetchFromGitHub { - owner = "taosdata"; - repo = "TDEngine"; - rev = "ver-${self.version}"; - hash = "sha256-CMpfaVhq3LOngugxp9POvXIQMjtpgwqP1VoCj2KkfYE="; - }; + src = fetchFromGitHub { + owner = "taosdata"; + repo = "TDEngine"; + rev = "ver-${default.version}"; + hash = "sha256-CMpfaVhq3LOngugxp9POvXIQMjtpgwqP1VoCj2KkfYE="; + }; - dontUseCmakeConfigure=true; + dontUseCmakeConfigure=true; - nativeBuildInputs = with nixpkgs; [ - cacert - git - pkg-config - xz - jansson - cmake - ]; + nativeBuildInputs = with nixpkgs; [ + cacert + git + pkg-config + xz + jansson + cmake + ]; - buildPhase = '' - ./build.sh - ''; - - installPhase = '' - make install - ''; + buildPhase = '' + ./build.sh + ''; + + installPhase = '' + make install + ''; + }; } \ No newline at end of file