depot/third_party/nixpkgs/pkgs/development/libraries/docopt_cpp/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
707 B
Nix

{ 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 ];
};
}