2018-05-06 20:57:45 +02:00
|
|
|
{ stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gnome-bluetooth
|
|
|
|
, gnome-desktop
|
|
|
|
, gnome-session
|
|
|
|
, gnome3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk
|
|
|
|
, ibus
|
|
|
|
, intltool
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, libpulseaudio
|
|
|
|
, libxkbfile
|
|
|
|
, libxml2
|
|
|
|
, metacity
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, substituteAll
|
|
|
|
, upower
|
|
|
|
, xkeyboard_config }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "gnome-flashback";
|
2018-09-12 09:49:51 +02:00
|
|
|
version = "3.30.0";
|
2018-05-06 20:57:45 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-12 09:49:51 +02:00
|
|
|
sha256 = "18rwql2pi78155l9zp1i50xfi5z8xz2l08m9d81x6qqbfr1nyy57";
|
2018-05-06 20:57:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches =[
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit metacity;
|
|
|
|
gnomeSession = gnome-session;
|
|
|
|
})
|
|
|
|
|
2018-09-12 09:49:51 +02:00
|
|
|
# overrides do not respect gsettingsschemasdir
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-flashback/issues/9
|
2018-05-06 20:57:45 +02:00
|
|
|
(fetchpatch {
|
2018-09-12 09:49:51 +02:00
|
|
|
url = https://gitlab.gnome.org/GNOME/gnome-flashback/commit/a55530f58ccd600414a5420b287868ab7d219705.patch;
|
|
|
|
sha256 = "1la94lhhb9zlw7bnbpl6hl26zv3kxbsvgx996mhph720wxg426mh";
|
2018-05-06 20:57:45 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gnome-bluetooth
|
|
|
|
gnome-desktop
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk
|
|
|
|
ibus
|
|
|
|
libcanberra-gtk3
|
|
|
|
libpulseaudio
|
|
|
|
libxkbfile
|
|
|
|
polkit
|
|
|
|
upower
|
|
|
|
xkeyboard_config
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNOME 2.x-like session for GNOME 3";
|
|
|
|
homepage = https://wiki.gnome.org/Projects/GnomeFlashback;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|