Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, ... }:
2
3stdenv.mkDerivation rec {
4 pname = "smarty3";
5 version = "3.1.44";
6
7 src = fetchFromGitHub {
8 owner = "smarty-php";
9 repo = "smarty";
10 rev = "v${version}";
11 sha256 = "sha256-9a9OC18jyFpmFXffYOYHZ0j01j4NCF5zwrSYr1fZwqo=";
12 };
13
14 installPhase = ''
15 mkdir $out
16 cp -r libs/* $out
17 '';
18
19 meta = with lib; {
20 description = "Smarty 3 template engine";
21 longDescription = ''
22 Smarty is a template engine for PHP, facilitating the
23 separation of presentation (HTML/CSS) from application
24 logic. This implies that PHP code is application
25 logic, and is separated from the presentation.
26 '';
27 homepage = "https://www.smarty.net";
28 license = licenses.lgpl21Plus;
29 maintainers = with maintainers; [ das_j ];
30 };
31}