diff options
author | Profpatsch <mail@profpatsch.de> | 2016-09-05 14:17:35 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-09-07 21:33:29 +0200 |
commit | 03874369a38410e7bd5e78e45e26d8a9ad3ef3bb (patch) | |
tree | 3b95b40ce778f8b6625c81caafd7430a0ea4258f /pkgs/data/documentation/mustache-spec | |
parent | 03e70ebcc6d97dc085fb19e3909a3298c58ec3e0 (diff) | |
download | nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.tar nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.tar.gz nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.tar.bz2 nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.tar.lz nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.tar.xz nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.tar.zst nixpkgs-03874369a38410e7bd5e78e45e26d8a9ad3ef3bb.zip |
mustache: init mustache-spec at 1.0.2
Add a description of the mustache template system, as manpages and html docs.
Diffstat (limited to 'pkgs/data/documentation/mustache-spec')
-rw-r--r-- | pkgs/data/documentation/mustache-spec/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/data/documentation/mustache-spec/default.nix b/pkgs/data/documentation/mustache-spec/default.nix new file mode 100644 index 00000000000..e41b26d41fb --- /dev/null +++ b/pkgs/data/documentation/mustache-spec/default.nix @@ -0,0 +1,42 @@ +{ stdenv, lib, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "mustache-spec-${version}"; + 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}. + ''; + + homepage = "http://mustache.github.io/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ profpatsch ]; + platforms = lib.platforms.all; + }; +} |