diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/docopt_cpp')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/docopt_cpp/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/docopt_cpp/default.nix b/nixpkgs/pkgs/development/libraries/docopt_cpp/default.nix new file mode 100644 index 000000000000..59578ef796ec --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/docopt_cpp/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, cmake, python }: + +stdenv.mkDerivation rec { + version = "0.6.2"; + pname = "docopt.cpp"; + + 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 ]; + }; +} + |