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 b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

113 lines
1.9 KiB
Nix

{
fetchFromGitHub,
cinnamon-desktop,
cinnamon-settings-daemon,
cinnamon-translations,
dbus-glib,
glib,
gsettings-desktop-schemas,
gtk3,
libcanberra,
libxslt,
meson,
ninja,
pkg-config,
python3,
lib,
stdenv,
systemd,
wrapGAppsHook3,
xapp,
xorg,
libexecinfo,
pango,
}:
let
pythonEnv = python3.withPackages (
pp: with pp; [
python-xapp
pygobject3
setproctitle
]
);
in
stdenv.mkDerivation rec {
pname = "cinnamon-session";
version = "6.4.0";
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-4uTKcmwfEytoAy4CFiOedYJqmPtBFBHk0P1gEGgm6pU=";
};
patches = [
./0001-Use-dbus_glib-instead-of-elogind.patch
];
buildInputs = [
# meson.build
cinnamon-desktop
gtk3
glib
libcanberra
pango
xorg.libX11
xorg.libXext
xapp
xorg.libXau
xorg.libXcomposite
systemd
xorg.libXtst
xorg.libXrender
xorg.xtrans
# other (not meson.build)
cinnamon-settings-daemon
dbus-glib
glib
gsettings-desktop-schemas
pythonEnv # for cinnamon-session-quit
];
nativeBuildInputs = [
meson
ninja
wrapGAppsHook3
libexecinfo
python3
pkg-config
libxslt
];
mesonFlags = [
# use locales from cinnamon-translations
"--localedir=${cinnamon-translations}/share/locale"
];
postPatch = ''
# patchShebangs requires executable file
chmod +x data/meson_install_schemas.py
patchShebangs data/meson_install_schemas.py
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${cinnamon-desktop}/share"
--prefix XDG_CONFIG_DIRS : "${cinnamon-settings-daemon}/etc/xdg"
)
'';
meta = with lib; {
homepage = "https://github.com/linuxmint/cinnamon-session";
description = "Cinnamon session manager";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}