summary refs log tree commit diff
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2020-12-24 19:11:22 +0100
committerGitHub <noreply@github.com>2020-12-24 19:11:22 +0100
commit0b50507102eb236d707a3466dbe60f5ea7db2ffa (patch)
treef6d3ceaf975f50f65dd3d6e24c09dc93292778fe
parentc1f95fedb577bbddf952ba1bb98c46b678305e70 (diff)
downloadnixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.tar
nixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.tar.gz
nixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.tar.bz2
nixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.tar.lz
nixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.tar.xz
nixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.tar.zst
nixpkgs-0b50507102eb236d707a3466dbe60f5ea7db2ffa.zip
libctemplate: 2.3 -> 2.4 (#107423)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
-rw-r--r--pkgs/development/libraries/libctemplate/default.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/development/libraries/libctemplate/default.nix b/pkgs/development/libraries/libctemplate/default.nix
index 35707834c08..b571e816fc4 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 = ''