Skip to content

Commit 0b50507

Browse files
libctemplate: 2.3 -> 2.4 (#107423)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
1 parent c1f95fe commit 0b50507

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

pkgs/development/libraries/libctemplate/default.nix

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
{ stdenv, fetchurl, python2 }:
1+
{ stdenv, fetchFromGitHub, python3, autoconf, automake, libtool }:
22

33
stdenv.mkDerivation rec {
44
pname = "ctemplate";
5+
version = "2.4";
56

6-
version = "2.3";
7-
8-
src = fetchurl {
9-
url = "https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-${version}.tar.gz";
10-
sha256 = "0mi5g2xlws10z1g4x0cj6kd1r673kkav35pgzyqxa1w47xnwprcr";
7+
src = fetchFromGitHub {
8+
owner = "OlafvdSpek";
9+
repo = "ctemplate";
10+
rev = "ctemplate-${version}";
11+
sha256 = "1x0p5yym6vvcx70pm8ihnbxxrl2wnblfp72ih5vjyg8mzkc8cxrr";
1112
};
1213

13-
buildInputs = [ python2 ];
14+
nativeBuildInputs = [ python3 autoconf automake libtool ];
1415

1516
postPatch = ''
1617
patchShebangs .
1718
'';
1819

20+
preConfigure = ''
21+
./autogen.sh
22+
'';
23+
1924
meta = {
2025
description = "A simple but powerful template language for C++";
2126
longDescription = ''

0 commit comments

Comments
 (0)