Skip to content

Commit

Permalink
pantheon-tweaks: 1.1.2 -> 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bobby285271 committed May 22, 2024
1 parent 6c0b7a9 commit 4f5bd47
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,30 @@
, pkg-config
, python3
, vala
, wrapGAppsHook3
, gtk3
, libgee
, pantheon
}:

stdenv.mkDerivation rec {
pname = "pantheon-tweaks";
version = "1.1.2";
version = "2.0.1";

src = fetchFromGitHub {
owner = "pantheon-tweaks";
repo = pname;
rev = version;
sha256 = "sha256-E9YSRfh9bLAHn2y4p3aKwR5NOtexKokLWj3RwtDnLsQ=";
hash = "sha256-P3eM+xgsAMvqr2mIEjkQSjhxvQAwtSNItxAUcjO3ciY=";
};

patches = [
./fix-paths.patch
];

nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
wrapGAppsHook3
];

buildInputs = [
Expand All @@ -42,28 +40,30 @@ stdenv.mkDerivation rec {
elementary-files # settings schemas
elementary-terminal # settings schemas
granite
switchboard
]);

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/"
'';

passthru = {
updateScript = nix-update-script { };
};

meta = with lib; {
description = "Unofficial system settings panel for Pantheon";
description = "Unofficial system customization app for Pantheon";
longDescription = ''
Unofficial system settings panel for Pantheon
Unofficial system customization app 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;
mainProgram = "pantheon-tweaks";
};
}
6 changes: 2 additions & 4 deletions pkgs/desktops/pantheon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,8 @@ lib.makeScope pkgs.newScope (self: with self; {

### THIRD-PARTY

# Put packages that ONLY works with Pantheon in pkgs/desktops/pantheon/third-party,
# specifically third party switchboard plugins and wingpanel indicators.
# Please call these packages in pkgs/top-level/all-packages.nix instead of this file.
# https://github.com/NixOS/nixpkgs/issues/115222#issuecomment-906868654
# As suggested in https://github.com/NixOS/nixpkgs/issues/115222#issuecomment-906868654
# please avoid putting third-party packages in the `pantheon` scope.

}) // lib.optionalAttrs config.allowAliases {

Expand Down
13 changes: 0 additions & 13 deletions pkgs/desktops/pantheon/third-party/pantheon-tweaks/fix-paths.patch

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37698,8 +37698,6 @@ with pkgs;

pantheon = recurseIntoAttrs (callPackage ../desktops/pantheon { });

pantheon-tweaks = callPackage ../desktops/pantheon/third-party/pantheon-tweaks { };

wingpanel-indicator-ayatana = callPackage ../desktops/pantheon/third-party/wingpanel-indicator-ayatana { };

rox-filer = callPackage ../desktops/rox/rox-filer {
Expand Down

0 comments on commit 4f5bd47

Please sign in to comment.