diff options
author | Bobby Rong <rjl931189261@126.com> | 2024-05-18 12:07:11 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-05-22 21:58:09 +0800 |
commit | 4f5bd47b5650f6ce4238952e71c7f1d130736aa4 (patch) | |
tree | ca6a3dc2a4a80ae8593b2829da9b15b8d2f85cc6 /pkgs/by-name/pa | |
parent | 6c0b7a92c30122196a761b440ac0d46d3d9954f1 (diff) |
pantheon-tweaks: 1.1.2 -> 2.0.1
Also move to by-name. https://github.com/pantheon-tweaks/pantheon-tweaks/compare/1.1.2...2.0.1
Diffstat (limited to 'pkgs/by-name/pa')
-rw-r--r-- | pkgs/by-name/pa/pantheon-tweaks/package.nix | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/pantheon-tweaks/package.nix b/pkgs/by-name/pa/pantheon-tweaks/package.nix new file mode 100644 index 0000000000000..26630f6f72df6 --- /dev/null +++ b/pkgs/by-name/pa/pantheon-tweaks/package.nix @@ -0,0 +1,69 @@ +{ lib +, stdenv +, fetchFromGitHub +, nix-update-script +, meson +, ninja +, pkg-config +, python3 +, vala +, wrapGAppsHook3 +, gtk3 +, libgee +, pantheon +}: + +stdenv.mkDerivation rec { + pname = "pantheon-tweaks"; + version = "2.0.1"; + + src = fetchFromGitHub { + owner = "pantheon-tweaks"; + repo = pname; + rev = version; + hash = "sha256-P3eM+xgsAMvqr2mIEjkQSjhxvQAwtSNItxAUcjO3ciY="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + python3 + vala + wrapGAppsHook3 + ]; + + buildInputs = [ + gtk3 + libgee + ] ++ (with pantheon; [ + elementary-files # settings schemas + elementary-terminal # settings schemas + granite + ]); + + 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 customization app for Pantheon"; + longDescription = '' + Unofficial system customization app for Pantheon + 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"; + }; +} |