pantheon-tweaks: init at 1.0.1

This commit is contained in:
Bobby Rong 2021-09-18 21:55:46 +08:00
parent 3a00e2e34a
commit dde5b46c5a
No known key found for this signature in database
GPG Key ID: ED07364437C91161
3 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,68 @@
{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, meson
, ninja
, pkg-config
, python3
, vala
, gtk3
, libgee
, pantheon
}:
stdenv.mkDerivation rec {
pname = "pantheon-tweaks";
version = "1.0.1";
src = fetchFromGitHub {
owner = "pantheon-tweaks";
repo = pname;
rev = version;
sha256 = "sha256-tAfDxX/RD7pO5PN/LaZ92Cj/iZtBI/EHb0+pORfYnPM=";
};
patches = [
./fix-paths.patch
];
nativeBuildInputs = [
meson
ninja
pkg-config
python3
vala
];
buildInputs = [
gtk3
libgee
pantheon.granite
pantheon.switchboard
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
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;
};
}

View File

@ -0,0 +1,13 @@
diff --git a/src/Settings/ThemeSettings.vala b/src/Settings/ThemeSettings.vala
index 589121b..8e9c81e 100644
--- a/src/Settings/ThemeSettings.vala
+++ b/src/Settings/ThemeSettings.vala
@@ -29,7 +29,7 @@ public class PantheonTweaks.ThemeSettings {
var themes = new Gee.ArrayList<string> ();
string[] dirs = {
- "/usr/share/" + path + "/",
+ "/run/current-system/sw/share/" + path + "/",
Environment.get_home_dir () + "/." + path + "/",
Environment.get_home_dir () + "/.local/share/" + path + "/"};

View File

@ -8021,6 +8021,8 @@ with pkgs;
pamtester = callPackage ../tools/security/pamtester { };
pantheon-tweaks = callPackage ../applications/system/pantheon-tweaks { };
paperless-ng = callPackage ../applications/office/paperless-ng { };
paperwork = callPackage ../applications/office/paperwork/paperwork-gtk.nix { };