nixpkgs/pkgs/by-name/lo/localsearch/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

155 lines
2.8 KiB
Nix

{
stdenv,
lib,
fetchurl,
asciidoc,
docbook-xsl-nons,
docbook_xml_dtd_45,
gettext,
itstool,
libxslt,
gexiv2,
tinysparql,
meson,
mesonEmulatorHook,
ninja,
pkg-config,
vala,
wrapGAppsNoGuiHook,
bzip2,
dbus,
exempi,
giflib,
glib,
gobject-introspection,
gnome,
gst_all_1,
icu,
json-glib,
libcue,
libexif,
libgsf,
libgudev,
libgxps,
libiptcdata,
libjpeg,
libosinfo,
libpng,
libseccomp,
libtiff,
libuuid,
libxml2,
networkmanager,
poppler,
systemd,
taglib,
upower,
totem-pl-parser,
e2fsprogs,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "localsearch";
version = "3.8.1";
src = fetchurl {
url = "mirror://gnome/sources/localsearch/${lib.versions.majorMinor finalAttrs.version}/localsearch-${finalAttrs.version}.tar.xz";
hash = "sha256-p7JKTweAXfdUOk3QI2hPzeXuaZygDrWwkSOgSdOuzNg=";
};
patches = [
./tracker-landlock-nix-store-permission.patch
];
nativeBuildInputs =
[
asciidoc
docbook-xsl-nons
docbook_xml_dtd_45
gettext
glib
gobject-introspection
itstool
libxslt
meson
ninja
pkg-config
vala
wrapGAppsNoGuiHook
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
# TODO: add libenca, libosinfo
buildInputs =
[
bzip2
dbus
exempi
giflib
gexiv2
totem-pl-parser
tinysparql
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gstreamer
gst_all_1.gst-libav
icu
json-glib
libcue
libexif
libgsf
libgudev
libgxps
libiptcdata
libjpeg
libosinfo
libpng
libtiff
libuuid
libxml2
poppler
taglib
]
++ lib.optionals stdenv.hostPlatform.isLinux [
libseccomp
networkmanager
systemd
upower
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
e2fsprogs
];
mesonFlags =
[
# TODO: tests do not like our sandbox
"-Dfunctional_tests=false"
]
++ lib.optionals (!stdenv.hostPlatform.isLinux) [
"-Dbattery_detection=none"
"-Dnetwork_manager=disabled"
"-Dsystemd_user_services=false"
];
postInstall = ''
glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
passthru = {
updateScript = gnome.updateScript { packageName = "localsearch"; };
};
meta = {
homepage = "https://gitlab.gnome.org/GNOME/localsearch";
description = "Desktop-neutral user information store, search tool and indexer";
maintainers = lib.teams.gnome.members;
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
mainProgram = "localsearch";
};
})