summary refs log tree commit diff
path: root/pkgs/development/libraries/clipp
diff options
context:
space:
mode:
authorxbreak <xbreak@alphaware.se>2019-09-03 12:34:13 +0000
committerxbreak <xbreak@alphaware.se>2019-09-03 12:38:59 +0000
commitb604e3fafd325ccc6756a9159d2218ec48310977 (patch)
treec3f4d6a8ee0da6c8b3478b37b09fdb5a20ad16c4 /pkgs/development/libraries/clipp
parent79cfb44011f6a2a108e09112f5573aee56d02907 (diff)
downloadnixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.tar
nixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.tar.gz
nixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.tar.bz2
nixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.tar.lz
nixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.tar.xz
nixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.tar.zst
nixpkgs-b604e3fafd325ccc6756a9159d2218ec48310977.zip
clipp: init at 1.2.3
Diffstat (limited to 'pkgs/development/libraries/clipp')
-rw-r--r--pkgs/development/libraries/clipp/clipp.pc9
-rw-r--r--pkgs/development/libraries/clipp/default.nix30
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/libraries/clipp/clipp.pc b/pkgs/development/libraries/clipp/clipp.pc
new file mode 100644
index 00000000000..38c07e5ba16
--- /dev/null
+++ b/pkgs/development/libraries/clipp/clipp.pc
@@ -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}
diff --git a/pkgs/development/libraries/clipp/default.nix b/pkgs/development/libraries/clipp/default.nix
new file mode 100644
index 00000000000..f7c8f90e868
--- /dev/null
+++ b/pkgs/development/libraries/clipp/default.nix
@@ -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;
+  };
+}