2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, vala
|
|
|
|
, gtk3
|
|
|
|
, libgee
|
|
|
|
, pantheon
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pantheon-tweaks";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.0.4";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pantheon-tweaks";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-L/3PrkfWOGYtqeH/DajGEGCsF5yYnWuESxUTfROSHQ4=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
libgee
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ (with pantheon; [
|
|
|
|
elementary-files # settings schemas
|
|
|
|
elementary-terminal # settings schemas
|
|
|
|
granite
|
|
|
|
switchboard
|
|
|
|
]);
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unofficial system settings panel for Pantheon";
|
|
|
|
longDescription = ''
|
|
|
|
Unofficial system settings panel for Pantheon
|
|
|
|
that lets you easily and safely customise your desktop's appearance.
|
|
|
|
Use programs.pantheon-tweaks.enable to add this to your switchboard.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/pantheon-tweaks/pantheon-tweaks";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.pantheon.members;
|
|
|
|
};
|
|
|
|
}
|