Files
nixpkgs/pkgs/by-name/gd/gdm-settings/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

69 lines
1.6 KiB
Nix

{
lib,
appstream,
blueprint-compiler,
desktop-file-utils,
fetchFromGitHub,
gdm,
glib,
libadwaita,
meson,
ninja,
pkg-config,
python3Packages,
wrapGAppsHook4,
# gdm-settings needs to know where to look for themes
# This should work for most systems, but can be overridden if not
dataDirs ? lib.concatStringsSep ":" [
"/run/current-system/sw/share"
"/usr/local/share"
"/usr/share"
],
}:
python3Packages.buildPythonApplication rec {
pname = "gdm-settings";
version = "5.0";
pyproject = false;
src = fetchFromGitHub {
owner = "gdm-settings";
repo = "gdm-settings";
tag = "v${version}";
hash = "sha256-x7w6m0+uwkm95onR+ioQAoLlaPoUmLc0+NgawQIIa/Y=";
};
nativeBuildInputs = [
appstream # for appstream file validation
blueprint-compiler
desktop-file-utils # for desktop file validation
glib # for `glib-compile-schemas`
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [ libadwaita ];
dependencies = [ python3Packages.pygobject3 ];
dontWrapGApps = true;
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
"--set-default HOST_DATA_DIRS ${dataDirs}"
];
pythonImportsCheck = [ "gdms" ];
meta = {
description = "Settings app for GNOME's Login Manager";
homepage = "https://gdm-settings.github.io/";
changelog = "https://github.com/gdm-settings/gdm-settings/releases/tag/v${version}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "gdm-settings";
inherit (gdm.meta) platforms;
};
}