2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pantheon }:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "default-settings";
|
2019-03-24 10:14:30 +00:00
|
|
|
version = "5.1.0";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
name = "elementary-${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-03-24 10:14:30 +00:00
|
|
|
sha256 = "0l73py4rr56i4dalb2wh1c6qiwmcjkm0l1j75jp5agcnxldh5wym";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = pantheon.updateScript {
|
|
|
|
repoName = pname;
|
|
|
|
attrPath = "elementary-${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./correct-override.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/etc/gtk-3.0
|
|
|
|
cp -av settings.ini $out/etc/gtk-3.0
|
|
|
|
|
|
|
|
mkdir -p $out/share/glib-2.0/schemas
|
2019-03-24 10:14:30 +00:00
|
|
|
cp -av overrides/default-settings.gschema.override $out/share/glib-2.0/schemas/20-io.elementary.desktop.gschema.override
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
mkdir $out/etc/wingpanel.d
|
|
|
|
cp -avr ${./io.elementary.greeter.whitelist} $out/etc/wingpanel.d/io.elementary.greeter.whitelist
|
|
|
|
|
|
|
|
mkdir -p $out/share/elementary/config/plank/dock1
|
|
|
|
cp -avr ${./launchers} $out/share/elementary/config/plank/dock1/launchers
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Default settings and configuration files for elementary";
|
|
|
|
homepage = https://github.com/elementary/default-settings;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|