about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/mustache-hpp/default.nix
blob: 373f232a9866d6687806bb2b9da1d57849549b26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
  pname = "mustache";
  version = "4.1";

  src = fetchFromGitHub {
    owner = "kainjow";
    repo = "Mustache";
    rev = "v${version}";
    sha256 = "0r9rbk6v1wpld2ismfsk2lkhbyv3dkf0p03hkjivbj05qkfhvlbb";
  };

  nativeBuildInputs = [ cmake ];

  installPhase = ''
    mkdir -p $out/include
    cp ../mustache.hpp $out/include
  '';

  meta = with lib; {
    description = "Mustache text templates for modern C++";
    homepage = "https://github.com/kainjow/Mustache";
    license = licenses.boost;
  };
}