nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
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,
19}:
20
21stdenv.mkDerivation rec {
22 pname = "lxsession";
23 version = "0.5.5";
24
25 src = fetchFromGitHub {
26 owner = "lxde";
27 repo = "lxsession";
28 rev = version;
29 sha256 = "17sqsx57ymrimm5jfmcyrp7b0nzi41bcvpxsqckmwbhl19g6c17d";
30 };
31
32 patches = [
33 ./xmlcatalog_patch.patch
34
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 ];
43
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 ];
55
56 buildInputs = [
57 gtk2-x11
58 libX11
59 polkit
60 vala
61 ];
62
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 ];
69
70 preConfigure = "./autogen.sh";
71
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 };
79}