about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/git2-cpp/default.nix
blob: aae958518661c447e500c87c77f376c960506ea3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "git2-cpp";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "ken-matsui";
    repo = "git2-cpp";
    rev = finalAttrs.version;
    hash = "sha256-2jKSQW6dUCIKtl33paSTuZdYAaYdFnILx/Gxv/ghFiI=";
  };

  nativeBuildInputs = [
    cmake
  ];

  meta = with lib; {
    homepage = "https://github.com/ken-matsui/git2-cpp";
    description = "libgit2 bindings for C++";
    license = licenses.mit;
    maintainers = with maintainers; [ ken-matsui ];
    platforms = platforms.unix;
  };
})
# TODO [ ken-matsui ]: tests