balsa: 2.6.4 -> 2.6.5, modernize

+25 -16
+25 -16
pkgs/by-name/ba/balsa/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchurl, 4 + fetchFromGitLab, 5 5 glib, 6 6 gmime3, 7 7 gnutls, 8 - gobject-introspection, 9 8 gpgme, 10 9 gtk3, 11 10 gtksourceview4, 12 11 gtkspell3, 13 - intltool, 14 12 libcanberra-gtk3, 15 13 libesmtp, 16 14 libical, 17 15 libnotify, 18 16 libsecret, 19 17 openssl, 18 + meson, 19 + ninja, 20 20 pkg-config, 21 21 sqlite, 22 22 webkitgtk_4_0, 23 23 wrapGAppsHook3, 24 24 }: 25 25 26 - stdenv.mkDerivation rec { 26 + stdenv.mkDerivation (finalAttrs: { 27 27 pname = "balsa"; 28 - version = "2.6.4"; 28 + version = "2.6.5"; 29 29 30 - src = fetchurl { 31 - url = "https://pawsa.fedorapeople.org/balsa/${pname}-${version}.tar.xz"; 32 - sha256 = "1hcgmjka2x2igdrmvzlfs12mv892kv4vzv5iy90kvcqxa625kymy"; 30 + src = fetchFromGitLab { 31 + domain = "gitlab.gnome.org"; 32 + owner = "GNOME"; 33 + repo = "balsa"; 34 + tag = finalAttrs.version; 35 + hash = "sha256-KvgDIFbXmVkTqOibKF+8UhupEDgdhje600aSbmeKZqo="; 33 36 }; 34 37 35 38 nativeBuildInputs = [ 39 + meson 40 + ninja 36 41 pkg-config 37 - intltool 38 - gobject-introspection 39 42 wrapGAppsHook3 40 43 ]; 41 44 ··· 57 60 webkitgtk_4_0 58 61 ]; 59 62 63 + mesonFlags = [ 64 + (lib.mesonOption "sysconfdir" "etc") 65 + ]; 66 + 60 67 configureFlags = [ 61 68 "--with-canberra" 62 69 "--with-gtksourceview" ··· 70 77 71 78 enableParallelBuilding = true; 72 79 73 - meta = with lib; { 74 - homepage = "http://pawsa.fedorapeople.org/balsa/"; 80 + meta = { 75 81 description = "E-mail client for GNOME"; 76 - license = licenses.gpl2Plus; 77 - platforms = platforms.unix; 78 - maintainers = [ maintainers.romildo ]; 82 + homepage = "https://gitlab.gnome.org/GNOME/balsa"; 83 + changelog = "https://gitlab.gnome.org/GNOME/balsa/-/blob/master/ChangeLog"; 84 + mainProgram = "balsa"; 85 + license = lib.licenses.gpl2Plus; 86 + platforms = lib.platforms.unix; 87 + maintainers = with lib.maintainers; [ romildo ]; 79 88 }; 80 - } 89 + })