fastJson: cleanup, use autoreconfHook

This commit is contained in:
Nick Cao 2023-06-21 16:52:03 +08:00
parent b51a53644c
commit 08a31d7ab8
No known key found for this signature in database

View file

@ -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";