Skip to content

Commit

Permalink
Merge pull request #68007 from xbreak/clipp
Browse files Browse the repository at this point in the history
clipp: init at 1.2.3
  • Loading branch information
roberth committed Sep 6, 2019
2 parents 4564295 + b604e3f commit 2eb0bb3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/libraries/clipp/clipp.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
prefix=@out@
includedir=${prefix}/include

Name: @pname@
Description: Easy to use, powerful and expressive command line argument \
handling for C++11/14/17
URL: https://github.com/muellan/clipp
Version: @version@
Cflags: -I${includedir}
30 changes: 30 additions & 0 deletions pkgs/development/libraries/clipp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10497,6 +10497,8 @@ in

clearsilver = callPackage ../development/libraries/clearsilver { };

clipp = callPackage ../development/libraries/clipp { };

clipper = callPackage ../development/libraries/clipper { };

cln = callPackage ../development/libraries/cln { };
Expand Down

0 comments on commit 2eb0bb3

Please sign in to comment.