summary refs log tree commit diff
path: root/pkgs/desktops/lxqt/core/lxqt-common/default.nix
blob: cc114c31dfd58510cb7bc80abc3b73ba4dd15119 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv, fetchFromGitHub, cmake, qt5, lxqt, hicolor_icon_theme, xmessage }:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "lxqt-common";
  version = "0.11.2";

  src = fetchFromGitHub {
    owner = "lxde";
    repo = pname;
    rev = version;
    sha256 = "07ih2w9ksbxqwy36xvgb9b31740nhkm7ap70wvv8q6x0wyhn71gn";
  };

  nativeBuildInputs = [
    cmake
    lxqt.lxqt-build-tools
  ];

  buildInputs = [
    qt5.qtsvg
    hicolor_icon_theme
    xmessage
  ];

  postPatch = lxqt.standardPatch
  + ''
    substituteInPlace ./startlxqt.in \
      --replace  "cp " "cp --no-preserve=mode " \
      --replace xmessage "${xmessage}"/bin/xmessage
  '';

  meta = with stdenv.lib; {
    description = "Common files for LXQt";
    homepage = https://github.com/lxde/lxqt-common;
    license = licenses.lgpl21;
    platforms = with platforms; unix;
    maintainers = with maintainers; [ romildo ];
  };
}