2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "smarty3";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "3.1.44";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smarty-php";
|
|
|
|
repo = "smarty";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-9a9OC18jyFpmFXffYOYHZ0j01j4NCF5zwrSYr1fZwqo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r libs/* $out
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Smarty 3 template engine";
|
|
|
|
longDescription = ''
|
|
|
|
Smarty is a template engine for PHP, facilitating the
|
|
|
|
separation of presentation (HTML/CSS) from application
|
|
|
|
logic. This implies that PHP code is application
|
|
|
|
logic, and is separated from the presentation.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.smarty.net";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ das_j ];
|
|
|
|
};
|
|
|
|
}
|