nixpkgs/pkgs/desktops/pantheon/desktop/elementary-default-settings/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.8 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, nixos-artwork
, glib
2021-01-17 03:21:50 +01:00
, pkg-config
, dbus
, polkit
, accountsservice
, python3
}:
2018-08-20 22:31:18 +02:00
stdenv.mkDerivation rec {
pname = "elementary-default-settings";
version = "6.0.2";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = "default-settings";
2018-08-20 22:31:18 +02:00
rev = version;
sha256 = "sha256-qaPj/Qp7RYzHgElFdM8bHV42oiPUbCMTC9Q+MUj4Q6Y=";
2018-08-20 22:31:18 +02:00
};
nativeBuildInputs = [
accountsservice
dbus
glib # polkit requires
meson
ninja
2021-01-17 03:21:50 +01:00
pkg-config
polkit
python3
];
mesonFlags = [
"--sysconfdir=${placeholder "out"}/etc"
"-Ddefault-wallpaper=${nixos-artwork.wallpapers.simple-dark-gray.gnomeFilePath}"
"-Dplank-dockitems=false"
];
2018-08-20 22:31:18 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
2018-08-20 22:31:18 +02:00
preInstall = ''
# Install our override for plank dockitems as the desktop file path is different.
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
postFixup = ''
# https://github.com/elementary/default-settings/issues/55
rm -r $out/share/cups
rm -r $out/share/applications
2018-08-20 22:31:18 +02:00
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
meta = with lib; {
2018-08-20 22:31:18 +02:00
description = "Default settings and configuration files for elementary";
homepage = "https://github.com/elementary/default-settings";
2018-08-20 22:31:18 +02:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2018-08-20 22:31:18 +02:00
};
}