Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "clipp";
5 version = "1.2.3";
6
7 src = fetchFromGitHub {
8 owner = "muellan";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0rq80ba2krwzvcg4r2g1al88453c7lz6ziri2s1ygv8inp9r775s";
12 };
13
14 installPhase = ''
15 mkdir -p $out/share/pkgconfig
16 cp -r include $out/
17 substitute ${./clipp.pc} $out/share/pkgconfig/clipp.pc \
18 --subst-var out \
19 --subst-var pname \
20 --subst-var version
21 '';
22
23 meta = with lib; {
24 description = "Easy to use, powerful and expressive command line argument handling for C++11/14/17";
25 homepage = "https://github.com/muellan/clipp";
26 license = licenses.mit;
27 maintainers = with maintainers; [ xbreak ];
28 platforms = with platforms; all;
29 };
30}