From 08a31d7ab80092a38aa15ed2b37f546148a329a7 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Wed, 21 Jun 2023 16:52:03 +0800 Subject: fastJson: cleanup, use autoreconfHook --- pkgs/development/libraries/fastjson/default.nix | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'pkgs/development/libraries/fastjson') diff --git a/pkgs/development/libraries/fastjson/default.nix b/pkgs/development/libraries/fastjson/default.nix index fe71d56357d..8cf571e2c93 100644 --- a/pkgs/development/libraries/fastjson/default.nix +++ b/pkgs/development/libraries/fastjson/default.nix @@ -1,21 +1,23 @@ -{ lib, stdenv, fetchFromGitHub, libtool, autoconf, automake }: +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: stdenv.mkDerivation rec { - version = "1.2304.0"; pname = "fastjson"; + version = "1.2304.0"; + src = fetchFromGitHub { - repo = "libfastjson"; owner = "rsyslog"; - rev = "v${version}"; - sha256 = "sha256-WnM6lQjHz0n5BwWWZoDBavURokcaROXJW46RZen9vj4="; + repo = "libfastjson"; + rev = "refs/tags/v${version}"; + hash = "sha256-WnM6lQjHz0n5BwWWZoDBavURokcaROXJW46RZen9vj4="; }; - nativeBuildInputs = [ autoconf automake ]; - buildInputs = [ libtool ]; - - preConfigure = '' - sh autogen.sh - ''; + nativeBuildInputs = [ + autoreconfHook + ]; meta = with lib; { description = "A fast json library for C"; -- cgit 1.4.1