2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-09-03 13:34:13 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 13:34:13 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|