Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 48 lines 1.3 kB view raw
1{ lib, stdenv, fetchurl, gnome, meson, ninja, pkg-config, vala, libssh2 2, gtk-doc, gobject-introspection, libgit2, glib, python3 }: 3 4stdenv.mkDerivation rec { 5 pname = "libgit2-glib"; 6 version = "0.99.0.1"; 7 8 src = fetchurl { 9 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 10 sha256 = "1pmrcnsa7qdda73c3dxf47733mwprmj5ljpw3acxbj6r8k27anp0"; 11 }; 12 13 postPatch = '' 14 for f in meson_vapi_link.py meson_python_compile.py; do 15 chmod +x $f 16 patchShebangs $f 17 done 18 ''; 19 20 passthru = { 21 updateScript = gnome.updateScript { 22 packageName = pname; 23 versionPolicy = "none"; 24 }; 25 }; 26 27 nativeBuildInputs = [ 28 meson ninja pkg-config vala gtk-doc gobject-introspection 29 ]; 30 31 propagatedBuildInputs = [ 32 # Required by libgit2-glib-1.0.pc 33 libgit2 glib 34 ]; 35 36 buildInputs = [ 37 libssh2 38 python3.pkgs.pygobject3 # this should really be a propagated input of python output 39 ]; 40 41 meta = with lib; { 42 description = "A glib wrapper library around the libgit2 git access library"; 43 homepage = "https://wiki.gnome.org/Projects/Libgit2-glib"; 44 license = licenses.lgpl21; 45 maintainers = teams.gnome.members; 46 platforms = platforms.linux; 47 }; 48}