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