about summary refs log tree commit diff
path: root/pkgs/desktops/deepin/deepin-mutter/default.nix
blob: e397ab53576d3d39b7192a34e64a62b4915e166a (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, gnome3, xorg,
  libcanberra-gtk3, upower, xkeyboard_config, libxkbcommon,
  libstartup_notification, libinput, cogl, clutter, systemd
}:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "deepin-mutter";
  version = "3.20.34";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "0s427fmj806ljpdg6jdvpfislk5m1xvxpnnyrq3l8b7pkhjvp8wd";
  };

  nativeBuildInputs = [
    pkgconfig
    intltool
    libtool
    gnome3.gnome-common
  ];

  buildInputs = [
    gnome3.gtk
    gnome3.gnome-desktop
    gnome3.gsettings-desktop-schemas
    gnome3.libgudev
    gnome3.zenity
    upower
    xorg.libxkbfile
    libxkbcommon
    libcanberra-gtk3
    libstartup_notification
    libinput
    xkeyboard_config
    cogl
    clutter
    systemd
  ];

  enableParallelBuilding = true;

  configureFlags = [
    "--enable-native-backend"
    "--enable-compile-warnings=minimum"
  ];

  preConfigure = ''
    NOCONFIGURE=1 ./autogen.sh
  '';

  meta = with stdenv.lib; {
    description = "Base window manager for deepin, fork of gnome mutter";
    homepage = https://github.com/linuxdeepin/deepin-mutter;
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ romildo ];
  };
}