summary refs log tree commit diff
path: root/pkgs/development/libraries/clipp/default.nix
blob: f7c8f90e86866302f4943f02ac8c9fc8b6cb5f00 (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
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "clipp";
  version = "1.2.3";

  src = fetchFromGitHub {
    owner = "muellan";
    repo = pname;
    rev = "v${version}";
    sha256 = "0rq80ba2krwzvcg4r2g1al88453c7lz6ziri2s1ygv8inp9r775s";
  };

  installPhase = ''
    mkdir -p $out/share/pkgconfig
    cp -r include $out/
    substitute ${./clipp.pc} $out/share/pkgconfig/clipp.pc \
      --subst-var out \
      --subst-var pname \
      --subst-var version
  '';

  meta = with stdenv.lib; {
    description = "Easy to use, powerful and expressive command line argument handling for C++11/14/17";
    homepage = "https://github.com/muellan/clipp";
    license = licenses.mit;
    maintainers = with maintainers; [ xbreak ];
    platforms = with platforms; all;
  };
}