summary refs log tree commit diff
path: root/pkgs/desktops/lxqt/core/lxqt-l10n/default.nix
blob: b836b9776e65caeb704d4324f3486f041ffd3c5e (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
{ stdenv, fetchFromGitHub, cmake, qt5, lxqt }:

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

  src = fetchFromGitHub {
    owner = "lxde";
    repo = "lxqt-l10n";
    rev = version;
    sha256 = "1vk4q98kraq0lba50n9z6jwiapc7nz2b143b4ldlmrz4wscd867h";
  };

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

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace "\''${LXQT_TRANSLATIONS_DIR}" "$out"/share/lxqt/translations
  '';
  
  meta = with stdenv.lib; {
    description = "Translations of LXQt";
    homepage = https://github.com/lxde/lxqt-l10n;
    license = licenses.lgpl21Plus;
    platforms = with platforms; unix;
    maintainers = with maintainers; [ romildo ];
  };
}