home-assistant: 2025.1.1 -> 2025.1.2 (#372513)
[NixPkgs.git] / pkgs / desktops / lxde / core / lxsession / default.nix
blobab6b77429d9a5516136dd24e6eb42fa17eab1c9f
2   lib,
3   stdenv,
4   fetchpatch,
5   fetchFromGitHub,
6   autoconf,
7   automake,
8   docbook_xml_dtd_412,
9   docbook_xsl,
10   intltool,
11   libxml2,
12   libxslt,
13   pkg-config,
14   wrapGAppsHook3,
15   gtk2-x11,
16   libX11,
17   polkit,
18   vala,
21 stdenv.mkDerivation rec {
22   pname = "lxsession";
23   version = "0.5.5";
25   src = fetchFromGitHub {
26     owner = "lxde";
27     repo = "lxsession";
28     rev = version;
29     sha256 = "17sqsx57ymrimm5jfmcyrp7b0nzi41bcvpxsqckmwbhl19g6c17d";
30   };
32   patches = [
33     ./xmlcatalog_patch.patch
35     # lxsession compilation is broken upstream as of GCC 14
36     # https://sourceforge.net/p/lxde/bugs/973/
37     (fetchpatch {
38       name = "0001-Fix-build-on-GCC-14.patch";
39       url = "https://sourceforge.net/p/lxde/bugs/973/attachment/0001-Fix-build-on-GCC-14.patch";
40       hash = "sha256-lxF3HZy5uLK7Cfu8W1A03syZf7OWXpHiU2Fk+xBl39g=";
41     })
42   ];
44   nativeBuildInputs = [
45     autoconf
46     automake
47     docbook_xml_dtd_412
48     docbook_xsl
49     intltool
50     libxml2
51     libxslt
52     pkg-config
53     wrapGAppsHook3
54   ];
56   buildInputs = [
57     gtk2-x11
58     libX11
59     polkit
60     vala
61   ];
63   configureFlags = [
64     "--enable-man"
65     "--disable-buildin-clipboard"
66     "--disable-buildin-polkit"
67     "--with-xml-catalog=${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml"
68   ];
70   preConfigure = "./autogen.sh";
72   meta = with lib; {
73     homepage = "https://wiki.lxde.org/en/LXSession";
74     description = "Classic LXDE session manager";
75     license = licenses.gpl2Plus;
76     maintainers = [ maintainers.shamilton ];
77     platforms = platforms.linux;
78   };