From 4614604ba48a57f7145aec69e45899feaa108a97 Mon Sep 17 00:00:00 2001 From: Daniel Kirk Date: Thu, 12 Oct 2023 13:10:13 +0000 Subject: [PATCH] Update to derivation --- overlays/tdengine/default.nix | 52 +++++++++++++++++------------------ 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/overlays/tdengine/default.nix b/overlays/tdengine/default.nix index 6b858405..5ebc3947 100644 --- a/overlays/tdengine/default.nix +++ b/overlays/tdengine/default.nix @@ -2,35 +2,33 @@ nixpkgs, stdenv, fetchFromGitHub -}: rec { - default = stdenv.mkDerivation { - name = "TDengine-client"; - version = "3.0.4.2"; +}: stdenv.mkDerivation { + name = "TDengine-client"; + version = "3.0.4.2"; - src = fetchFromGitHub { - owner = "taosdata"; - repo = "TDEngine"; - rev = "ver-${default.version}"; - hash = "sha256-CMpfaVhq3LOngugxp9POvXIQMjtpgwqP1VoCj2KkfYE="; - }; + src = fetchFromGitHub { + owner = "taosdata"; + repo = "TDEngine"; + rev = "ver-3.0.4.2"; + 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