about summary refs log tree commit diff
path: root/pkgs/development/libraries/fancypp/default.nix
blob: f93ab77c63debdd043c92d97b9d6de3af224ca60 (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
27
28
29
30
31
{ lib
, stdenvNoCC
, fetchFromGitHub
}:

stdenvNoCC.mkDerivation rec {
  pname = "fancypp";
  version = "unstable-2021-04-08";

  src = fetchFromGitHub {
    owner = "Curve";
    repo = "fancypp";
    rev = "ede7f712a08f7c66ff4a5590ad94a477c48850a5";
    sha256 = "sha256-E2JsQnvrqrZFYo+xBJr7xDCoPnRQftqUjjBpZzFvIic=";
  };

  # Header-only library.
  dontBuild = true;

  installPhase = ''
    mkdir "$out"
    cp -r include "$out"
  '';

  meta = with lib; {
    description = "Tiny C++ Library for terminal colors and more!";
    homepage = "https://github.com/Curve/fancypp";
    maintainers = with maintainers; [ aidalgol ];
    license = licenses.mit;
  };
}