Files
nixpkgs/pkgs/by-name/gi/git2-cpp/package.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

32 lines
589 B
Nix

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