Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 73 lines 1.4 kB view raw
1{ stdenv 2, lib 3, fetchurl 4, gnome 5, meson 6, ninja 7, pkg-config 8, vala 9, libssh2 10, gtk-doc 11, gobject-introspection 12, gi-docgen 13, libgit2 14, glib 15, python3 16}: 17 18stdenv.mkDerivation rec { 19 pname = "libgit2-glib"; 20 version = "1.2.0"; 21 22 outputs = [ "out" "dev" "devdoc" ]; 23 24 src = fetchurl { 25 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 26 sha256 = "EzHa2oOPTh9ZGyZFnUQSajJd52LcPNJhU6Ma+9/hgZA="; 27 }; 28 29 nativeBuildInputs = [ 30 meson 31 ninja 32 pkg-config 33 vala 34 gtk-doc 35 gobject-introspection 36 gi-docgen 37 ]; 38 39 propagatedBuildInputs = [ 40 # Required by libgit2-glib-1.0.pc 41 libgit2 42 glib 43 ]; 44 45 buildInputs = [ 46 libssh2 47 python3.pkgs.pygobject3 # this should really be a propagated input of python output 48 ]; 49 50 mesonFlags = [ 51 "-Dgtk_doc=true" 52 ]; 53 54 postPatch = '' 55 chmod +x meson_python_compile.py 56 patchShebangs meson_python_compile.py 57 ''; 58 59 passthru = { 60 updateScript = gnome.updateScript { 61 packageName = pname; 62 versionPolicy = "none"; 63 }; 64 }; 65 66 meta = with lib; { 67 description = "A glib wrapper library around the libgit2 git access library"; 68 homepage = "https://gitlab.gnome.org/GNOME/libgit2-glib"; 69 license = licenses.lgpl21Plus; 70 maintainers = teams.gnome.members; 71 platforms = platforms.linux; 72 }; 73}