2016-09-05 12:17:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mustache-spec";
|
2016-09-05 12:17:35 +00:00
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mustache";
|
|
|
|
repo = "mustache";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "03xrfyjzm5ss6zkdlpl9ypwzcglspcdcnr3f94vj1rjfqm2rxcjw";
|
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = "";
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{man/man5,doc/html}
|
|
|
|
cp man/mustache.5 $out/man/man5
|
|
|
|
cp man/mustache.5.html $out/doc/html
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = rec {
|
|
|
|
description = "Logic-less templates, specification package";
|
|
|
|
longDescription = ''
|
|
|
|
Inspired by ctemplate and et, Mustache is a framework-agnostic way to
|
|
|
|
render logic-free views.
|
|
|
|
|
|
|
|
Provides the specification as man page and html docs.
|
|
|
|
|
|
|
|
As ctemplates says, "It emphasizes separating logic from presentation: it
|
|
|
|
is impossible to embed application logic in this template language."
|
|
|
|
|
|
|
|
For a list of implementations and tips, see ${homepage}.
|
|
|
|
'';
|
|
|
|
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://mustache.github.io/;
|
2016-09-05 12:17:35 +00:00
|
|
|
license = lib.licenses.mit;
|
2018-02-12 06:18:12 +00:00
|
|
|
maintainers = with lib.maintainers; [ Profpatsch ];
|
2016-09-05 12:17:35 +00:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|