Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "mustache-spec";
5 version = "1.0.2";
6
7 src = fetchFromGitHub {
8 owner = "mustache";
9 repo = "mustache";
10 rev = "v${version}";
11 sha256 = "03xrfyjzm5ss6zkdlpl9ypwzcglspcdcnr3f94vj1rjfqm2rxcjw";
12 };
13
14 configurePhase = "";
15 dontBuild = true;
16
17 installPhase = ''
18 mkdir -p $out/{man/man5,doc/html}
19 cp man/mustache.5 $out/man/man5
20 cp man/mustache.5.html $out/doc/html
21 '';
22
23 meta = rec {
24 description = "Logic-less templates, specification package";
25 longDescription = ''
26 Inspired by ctemplate and et, Mustache is a framework-agnostic way to
27 render logic-free views.
28
29 Provides the specification as man page and html docs.
30
31 As ctemplates says, "It emphasizes separating logic from presentation: it
32 is impossible to embed application logic in this template language."
33
34 For a list of implementations and tips, see ${homepage}.
35 '';
36
37 homepage = "http://mustache.github.io/";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ Profpatsch ];
40 platforms = lib.platforms.all;
41 };
42}