bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
26 lines
577 B
Nix
26 lines
577 B
Nix
{ 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;
|
|
};
|
|
}
|