Files
nixpkgs/pkgs/by-name/li/libinfinity/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

90 lines
1.9 KiB
Nix

{
gtkWidgets ? false, # build GTK widgets for libinfinity
avahiSupport ? false, # build support for Avahi in libinfinity
lib,
stdenv,
fetchurl,
pkg-config,
glib,
libxml2,
gnutls,
gsasl,
gobject-introspection,
gtk3 ? null,
gtk-doc,
docbook_xsl,
docbook_xml_dtd_412,
avahi ? null,
libdaemon,
libidn,
gss,
libintl,
}:
assert avahiSupport -> avahi != null;
assert gtkWidgets -> gtk3 != null;
let
self = stdenv.mkDerivation rec {
pname = "libinfinity";
version = "0.7.2";
src = fetchurl {
url = "https://github.com/gobby/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "17i3g61hxz9pzl3ryd1yr15142r25m06jfzjrpdy7ic1b8vjjw3f";
};
outputs = [
"bin"
"out"
"dev"
"man"
"devdoc"
];
nativeBuildInputs = [
pkg-config
gtk-doc
docbook_xsl
docbook_xml_dtd_412
gobject-introspection
];
buildInputs = [
glib
libxml2
gsasl
libidn
gss
libintl
libdaemon
]
++ lib.optional gtkWidgets gtk3
++ lib.optional avahiSupport avahi;
propagatedBuildInputs = [ gnutls ];
configureFlags = [
(lib.enableFeature true "gtk-doc")
(lib.enableFeature true "introspection")
(lib.withFeature gtkWidgets "inftextgtk")
(lib.withFeature gtkWidgets "infgtk")
(lib.withFeature true "infinoted")
(lib.withFeature true "libdaemon")
(lib.withFeature avahiSupport "avahi")
];
passthru = {
infinoted = "${self.bin}/bin/infinoted-${lib.versions.majorMinor version}";
};
meta = {
homepage = "https://gobby.github.io/";
description = "Implementation of the Infinote protocol written in GObject-based C";
mainProgram = "infinoted-0.7";
license = lib.licenses.lgpl2Plus;
maintainers = [ ];
platforms = with lib.platforms; linux ++ darwin;
};
};
in
self