1{ lib
2, stdenvNoCC
3, fetchFromGitHub
4}:
5
6stdenvNoCC.mkDerivation rec {
7 pname = "aixlog";
8 version = "1.5.0";
9
10 src = fetchFromGitHub {
11 owner = "badaix";
12 repo = pname;
13 rev = "v${version}";
14 hash = "sha256-Xhle7SODRZlHT3798mYIzBi1Mqjz8ai74/UnbVWetiY=";
15 };
16
17 dontConfigure = true;
18 dontBuild = true;
19 dontFixup = true;
20
21 installPhase = ''
22 runHook preInstall
23
24 install -Dm644 $src/include/aixlog.hpp $out/include/aixlog.hpp
25
26 runHook postInstall
27 '';
28
29 meta = with lib; {
30 description = "Header-only C++ logging library";
31 homepage = "https://github.com/badaix/aixlog";
32 changelog = "https://github.com/badaix/aixlog/releases/tag/${src.rev}";
33 license = licenses.mit;
34 maintainers = with maintainers; [ azahi ];
35 };
36}