nixpkgs-suyu/pkgs/desktops/deepin/deepin-mutter/default.nix

81 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, gnome3, gtk3,
xorg, libcanberra-gtk3, upower, xkeyboard_config, libxkbcommon,
libstartup_notification, libinput, libgudev, cogl, clutter, systemd,
gsettings-desktop-schemas, deepin-desktop-schemas, wrapGAppsHook,
deepin }:
2018-09-07 15:22:12 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-mutter";
version = "3.20.38";
2018-09-07 15:22:12 +02:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "1aq7606sgn2c6n8wfgxdryw3lprc4va0zjc0r65798w5656fdi31";
2018-09-07 15:22:12 +02:00
};
nativeBuildInputs = [
pkgconfig
intltool
libtool
gnome3.gnome-common
wrapGAppsHook
deepin.setupHook
2018-09-07 15:22:12 +02:00
];
buildInputs = [
clutter
cogl
deepin-desktop-schemas
2018-09-07 15:22:12 +02:00
gnome3.gnome-desktop
gnome3.zenity
gsettings-desktop-schemas
gtk3
2018-09-07 15:22:12 +02:00
libcanberra-gtk3
libgudev
2018-09-07 15:22:12 +02:00
libinput
libstartup_notification
libxkbcommon
2018-09-07 15:22:12 +02:00
systemd
upower
xkeyboard_config
xorg.libxkbfile
2018-09-07 15:22:12 +02:00
];
patches = [
./deepin-mutter.plugins-dir.patch
];
postPatch = ''
searchHardCodedPaths # debugging
sed -i -e "s,Exec=deepin-mutter,Exec=$out/bin/deepin-mutter," data/mutter.desktop.in
'';
2018-09-07 15:22:12 +02:00
configureFlags = [
"--enable-native-backend"
"--enable-compile-warnings=minimum"
];
preConfigure = ''
NOCONFIGURE=1 ./autogen.sh
'';
postFixup = ''
searchHardCodedPaths $out # debugging
'';
enableParallelBuilding = true;
2018-10-30 23:17:45 +01:00
passthru.updateScript = deepin.updateScript { inherit name; };
2018-09-07 15:22:12 +02:00
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 ];
};
}