From 0b50507102eb236d707a3466dbe60f5ea7db2ffa Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Thu, 24 Dec 2020 19:11:22 +0100 Subject: [PATCH] libctemplate: 2.3 -> 2.4 (#107423) Co-authored-by: Sandro --- .../libraries/libctemplate/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/libctemplate/default.nix b/pkgs/development/libraries/libctemplate/default.nix index 35707834c086..b571e816fc40 100644 --- a/pkgs/development/libraries/libctemplate/default.nix +++ b/pkgs/development/libraries/libctemplate/default.nix @@ -1,21 +1,26 @@ -{ stdenv, fetchurl, python2 }: +{ stdenv, fetchFromGitHub, python3, autoconf, automake, libtool }: stdenv.mkDerivation rec { pname = "ctemplate"; + version = "2.4"; - version = "2.3"; - - src = fetchurl { - url = "https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-${version}.tar.gz"; - sha256 = "0mi5g2xlws10z1g4x0cj6kd1r673kkav35pgzyqxa1w47xnwprcr"; + src = fetchFromGitHub { + owner = "OlafvdSpek"; + repo = "ctemplate"; + rev = "ctemplate-${version}"; + sha256 = "1x0p5yym6vvcx70pm8ihnbxxrl2wnblfp72ih5vjyg8mzkc8cxrr"; }; - buildInputs = [ python2 ]; + nativeBuildInputs = [ python3 autoconf automake libtool ]; postPatch = '' patchShebangs . ''; + preConfigure = '' + ./autogen.sh + ''; + meta = { description = "A simple but powerful template language for C++"; longDescription = ''