mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
93 lines
1.7 KiB
Nix
93 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, itstool
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, evolution-data-server
|
|
, feedbackd
|
|
, glibmm
|
|
, libsecret
|
|
, gnome-desktop
|
|
, gspell
|
|
, gtk4
|
|
, gtksourceview5
|
|
, gst_all_1
|
|
, json-glib
|
|
, libgcrypt
|
|
, libadwaita
|
|
, libphonenumber
|
|
, modemmanager
|
|
, olm
|
|
, pidgin
|
|
, protobuf
|
|
, sqlite
|
|
, plugins ? [ ]
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chatty";
|
|
version = "0.8.4";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "Chatty";
|
|
rev = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-1CHreTkw1C3tc6vOCG+7Y/u4R/xTFOnlI4mcxjY/alY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
itstool
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
evolution-data-server
|
|
feedbackd
|
|
glibmm
|
|
libsecret
|
|
gnome-desktop
|
|
gspell
|
|
gtk4
|
|
gtksourceview5
|
|
gst_all_1.gstreamer
|
|
json-glib
|
|
libgcrypt
|
|
libadwaita
|
|
libphonenumber
|
|
modemmanager
|
|
olm
|
|
pidgin
|
|
protobuf
|
|
sqlite
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix PURPLE_PLUGIN_PATH : ${lib.escapeShellArg (pidgin.makePluginPath plugins)}
|
|
${lib.concatMapStringsSep " " (p: p.wrapArgs or "") plugins}
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "XMPP and SMS messaging via libpurple and ModemManager";
|
|
mainProgram = "chatty";
|
|
homepage = "https://gitlab.gnome.org/World/Chatty";
|
|
changelog = "https://gitlab.gnome.org/World/Chatty/-/blob/${finalAttrs.src.rev}/NEWS";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|