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