at 23.05-pre 77 lines 1.4 kB view raw
1{ stdenv 2, lib 3, fetchurl 4, meson 5, ninja 6, pkg-config 7, gettext 8, gi-docgen 9, gnome 10, glib 11, gtk3 12, gobject-introspection 13, python3 14, ncurses 15}: 16 17stdenv.mkDerivation rec { 18 pname = "libpeas"; 19 version = "1.34.0"; 20 21 outputs = [ "out" "dev" "devdoc" ]; 22 23 src = fetchurl { 24 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 25 sha256 = "QwX3Fdq0ta0+gAfa7DFmJecGWpTmPiXvVese+5ZKe/A="; 26 }; 27 28 depsBuildBuild = [ 29 pkg-config 30 ]; 31 32 nativeBuildInputs = [ 33 pkg-config 34 meson 35 ninja 36 gettext 37 gi-docgen 38 gobject-introspection 39 ]; 40 41 buildInputs = [ 42 glib 43 gtk3 44 ncurses 45 python3 46 python3.pkgs.pygobject3 47 ]; 48 49 propagatedBuildInputs = [ 50 # Required by libpeas-1.0.pc 51 gobject-introspection 52 ]; 53 54 mesonFlags = [ 55 "-Dgtk_doc=true" 56 ]; 57 58 postFixup = '' 59 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. 60 moveToOutput "share/doc" "$devdoc" 61 ''; 62 63 passthru = { 64 updateScript = gnome.updateScript { 65 packageName = pname; 66 versionPolicy = "odd-unstable"; 67 }; 68 }; 69 70 meta = with lib; { 71 description = "A GObject-based plugins engine"; 72 homepage = "https://wiki.gnome.org/Projects/Libpeas"; 73 license = licenses.gpl2Plus; 74 platforms = platforms.unix; 75 maintainers = teams.gnome.members; 76 }; 77}