2021-10-28 08:29:18 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 20:02:06 +02:00
|
|
|
, fetchFromGitHub
|
2023-09-19 17:54:26 +02:00
|
|
|
, fetchpatch
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-10-05 07:16:12 +02:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, nixos-artwork
|
|
|
|
, glib
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2019-10-05 07:16:12 +02:00
|
|
|
, dbus
|
|
|
|
, polkit
|
|
|
|
, accountsservice
|
2019-08-05 20:02:06 +02:00
|
|
|
}:
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-06 00:41:32 +02:00
|
|
|
pname = "elementary-default-settings";
|
2023-08-19 05:19:24 +02:00
|
|
|
version = "7.1.0";
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-19 15:50:20 +01:00
|
|
|
repo = "default-settings";
|
2018-08-20 22:31:18 +02:00
|
|
|
rev = version;
|
2023-08-19 05:19:24 +02:00
|
|
|
sha256 = "sha256-j4K8qYwfu6/s4qnTSzwv6KRsk9f+Qr/l1bhLywKMHMU=";
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
|
2023-09-19 17:54:26 +02:00
|
|
|
patches = [
|
|
|
|
# Add pantheon-portals.conf
|
|
|
|
# https://github.com/elementary/default-settings/pull/293
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/default-settings/commit/8201eeb6a356e6059b505756ef7a556a6848ad3b.patch";
|
|
|
|
sha256 = "sha256-qhGj7WQTAWJTC1kouUZhBWKqyO4hQWJghEhLVl8QVUM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-10-05 07:16:12 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
accountsservice
|
|
|
|
dbus
|
|
|
|
glib # polkit requires
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2019-10-05 07:16:12 +02:00
|
|
|
polkit
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
2020-04-28 04:35:31 +02:00
|
|
|
"-Ddefault-wallpaper=${nixos-artwork.wallpapers.simple-dark-gray.gnomeFilePath}"
|
2019-10-05 07:16:12 +02:00
|
|
|
"-Dplank-dockitems=false"
|
|
|
|
];
|
2018-08-20 22:31:18 +02:00
|
|
|
|
2019-10-05 07:16:12 +02:00
|
|
|
preInstall = ''
|
2022-02-09 15:20:06 +01:00
|
|
|
# Install our override for plank dockitems as the desktop file path is different.
|
2019-10-05 07:16:12 +02:00
|
|
|
schema_dir=$out/share/glib-2.0/schemas
|
|
|
|
install -D ${./overrides/plank-dockitems.gschema.override} $schema_dir/plank-dockitems.gschema.override
|
|
|
|
|
|
|
|
# Our launchers that use paths at /run/current-system/sw/bin
|
|
|
|
mkdir -p $out/etc/skel/.config/plank/dock1
|
|
|
|
cp -avr ${./launchers} $out/etc/skel/.config/plank/dock1/launchers
|
|
|
|
'';
|
2018-08-20 22:31:18 +02:00
|
|
|
|
2019-10-05 07:16:12 +02:00
|
|
|
postFixup = ''
|
|
|
|
# https://github.com/elementary/default-settings/issues/55
|
2021-11-11 09:52:57 +01:00
|
|
|
rm -r $out/share/cups
|
|
|
|
rm -r $out/share/applications
|
2018-08-20 22:31:18 +02:00
|
|
|
'';
|
|
|
|
|
2021-10-28 08:29:18 +02:00
|
|
|
passthru = {
|
2022-12-25 23:11:14 +01:00
|
|
|
updateScript = nix-update-script { };
|
2021-10-28 08:29:18 +02:00
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-20 22:31:18 +02:00
|
|
|
description = "Default settings and configuration files for elementary";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/elementary/default-settings";
|
2018-08-20 22:31:18 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 17:00:51 +02:00
|
|
|
maintainers = teams.pantheon.members;
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
}
|