nixpkgs/pkgs/by-name/pa/pantheon-tweaks/package.nix

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

70 lines
1.4 KiB
Nix
Raw Normal View History

2021-09-18 15:55:46 +02:00
{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, pkg-config
, python3
, vala
, wrapGAppsHook3
2021-09-18 15:55:46 +02:00
, gtk3
, libgee
, pantheon
}:
stdenv.mkDerivation rec {
pname = "pantheon-tweaks";
2024-05-28 05:16:23 +02:00
version = "2.0.2";
2021-09-18 15:55:46 +02:00
src = fetchFromGitHub {
owner = "pantheon-tweaks";
repo = pname;
rev = version;
2024-05-28 05:16:23 +02:00
hash = "sha256-7a6maEpvmIS+Raawr9ec44nCbuj83EUnd+8RqYgWy24=";
2021-09-18 15:55:46 +02:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
wrapGAppsHook3
2021-09-18 15:55:46 +02:00
];
buildInputs = [
gtk3
libgee
2021-11-03 02:40:04 +01:00
] ++ (with pantheon; [
elementary-files # settings schemas
elementary-terminal # settings schemas
granite
]);
2021-09-18 15:55:46 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
substituteInPlace src/Settings/ThemeSettings.vala \
--replace-fail "/usr/share/" "/run/current-system/sw/share/"
2021-09-18 15:55:46 +02:00
'';
passthru = {
updateScript = nix-update-script { };
2021-09-18 15:55:46 +02:00
};
meta = with lib; {
description = "Unofficial system customization app for Pantheon";
2021-09-18 15:55:46 +02:00
longDescription = ''
Unofficial system customization app for Pantheon
2021-09-18 15:55:46 +02:00
that lets you easily and safely customise your desktop's appearance.
'';
homepage = "https://github.com/pantheon-tweaks/pantheon-tweaks";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
mainProgram = "pantheon-tweaks";
2021-09-18 15:55:46 +02:00
};
}