3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #23400 from knedlsepp/add_docopt_cpp

docopt.cpp: init at 0.6.2
This commit is contained in:
Joachim F 2017-03-27 21:28:50 +01:00 committed by GitHub
commit 07a76cc934
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, cmake, python }:
stdenv.mkDerivation rec {
version = "0.6.2";
name = "docopt.cpp-${version}";
src = fetchFromGitHub {
owner = "docopt";
repo = "docopt.cpp";
rev = "v${version}";
sha256 = "1rgkc8nsc2zz2lkyai0y68vrd6i6kbq63hm3vdza7ab6ghq0n1dd";
};
nativeBuildInputs = [ cmake python ];
cmakeFlags = ["-DWITH_TESTS=ON"];
doCheck = true;
checkPhase = "LD_LIBRARY_PATH=$(pwd) python ./run_tests";
meta = with stdenv.lib; {
description = "C++11 port of docopt";
homepage = https://github.com/docopt/docopt.cpp;
license = with licenses; [ mit boost ];
platforms = platforms.all;
maintainers = with maintainers; [ knedlsepp ];
};
}

View file

@ -7295,6 +7295,8 @@ with pkgs;
dlib = callPackage ../development/libraries/dlib { };
docopt_cpp = callPackage ../development/libraries/docopt_cpp { };
dotconf = callPackage ../development/libraries/dotconf { };
dssi = callPackage ../development/libraries/dssi {};