Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: da4f6a2a09e3
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5f14e83bd6b9
Choose a head ref
  • 5 commits
  • 8 files changed
  • 2 contributors

Commits on Apr 28, 2019

  1. mousetweaks: init at 3.32.0

    Solves #39509
    JohnAZoidberg authored and worldofpeace committed Apr 28, 2019
    Copy the full SHA
    08588e7 View commit details
  2. onboard: Depend on mousetweaks

    JohnAZoidberg authored and worldofpeace committed Apr 28, 2019
    Copy the full SHA
    9da62cb View commit details
  3. Copy the full SHA
    aa7a952 View commit details
  4. Copy the full SHA
    8ffcfdd View commit details
  5. Merge pull request #60176 from JohnAZoidberg/mousetweaks

    mousetweaks: init at 3.32.0
    worldofpeace authored Apr 28, 2019
    Copy the full SHA
    5f14e83 View commit details
49 changes: 49 additions & 0 deletions pkgs/applications/accessibility/mousetweaks/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ stdenv, fetchurl, pkgconfig
, glib, gtk3, gnome3, gsettings-desktop-schemas, wrapGAppsHook
, libX11, libXtst, libXfixes, libXcursor
}:

stdenv.mkDerivation rec {
pname = "mousetweaks";
version = "3.32.0";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "005fhmvb45sa9mq17dpa23n1xnspiissx5rnpiy7hiqmy3g5rg8f";
};

nativeBuildInputs = [ pkgconfig wrapGAppsHook ];

buildInputs = [
glib gtk3 gsettings-desktop-schemas
libX11 libXtst libXfixes libXcursor
];

passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};

meta = with stdenv.lib; {
description = "Provides mouse accessibility enhancements for the GNOME desktop";
longDescription = ''
Mousetweaks provides mouse accessibility enhancements for the GNOME
desktop. These enhancements are:
- It offers a way to perform the various clicks without using any
physical mouse buttons. (Hover Click)
- It allows users to perform a secondary click by keeping the primary
mouse button pressed for a predetermined amount of time. (Simulated
Secondary Click)
The features can be activated and configured through the Universal Access
panel of the GNOME Control Center.
'';
homepage = https://wiki.gnome.org/Projects/Mousetweaks;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.johnazoidberg ];
};
}
7 changes: 7 additions & 0 deletions pkgs/applications/misc/onboard/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ fetchurl
, stdenv
, substituteAll
, aspellWithDicts
, at-spi2-core ? null
, atspiSupport ? true
@@ -16,6 +17,7 @@
, intltool
, isocodes
, libcanberra-gtk3
, mousetweaks
, udev
, libxkbcommon
, pkgconfig
@@ -38,6 +40,10 @@ in python3.pkgs.buildPythonApplication rec {
};

patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit mousetweaks;
})
# Allow loading hunspell dictionaries installed in NixOS system path
./hunspell-use-xdg-datadirs.patch
];
@@ -79,6 +85,7 @@ in python3.pkgs.buildPythonApplication rec {
hunspell
isocodes
libcanberra-gtk3
mousetweaks
udev
libxkbcommon
wrapGAppsHook
11 changes: 11 additions & 0 deletions pkgs/applications/misc/onboard/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Onboard/ClickSimulator.py
+++ b/Onboard/ClickSimulator.py
@@ -479,7 +479,7 @@ class CSMousetweaks(ConfigObject, ClickSimulator):
self._daemon_running_notify_callbacks = []

def _launch_daemon(self, delay):
- self.launcher.launch_delayed(["mousetweaks"], delay)
+ self.launcher.launch_delayed(["@mousetweaks@/bin/mousetweaks"], delay)

def _set_connection(self, active):
''' Update interface object, state and notify listeners '''
3 changes: 2 additions & 1 deletion pkgs/desktops/gnome-3/core/gnome-settings-daemon/default.nix
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
, libgnomekbd
, lcms2
, libpulseaudio
, mousetweaks
, alsaLib
, libcanberra-gtk3
, upower
@@ -48,7 +49,7 @@ stdenv.mkDerivation rec {
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit tzdata;
inherit tzdata mousetweaks;
})
];

11 changes: 11 additions & 0 deletions pkgs/desktops/gnome-3/core/gnome-settings-daemon/fix-paths.patch
Original file line number Diff line number Diff line change
@@ -13,3 +13,14 @@

typedef struct _TzDB TzDB;
typedef struct _TzLocation TzLocation;
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -118,7 +118,7 @@ set_mousetweaks_daemon (GsdMouseManager *manager,
gboolean run_daemon = dwell_click_enabled || secondary_click_enabled;

if (run_daemon || manager->priv->mousetweaks_daemon_running)
- comm = g_strdup_printf ("mousetweaks %s",
+ comm = g_strdup_printf ("@mousetweaks@/bin/mousetweaks %s",
run_daemon ? "" : "-s");
else
return;
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@
, libxml2
, libxslt
, meson
, mousetweaks
, networkmanager
, ninja
, nss
@@ -30,12 +31,12 @@
, pkgconfig
, polkit
, python3
, stdenv
, substituteAll
, systemd
, tzdata
, upower
, wrapGAppsHook
, stdenv
}:

stdenv.mkDerivation rec {
@@ -63,7 +64,7 @@ stdenv.mkDerivation rec {
patches = let patchPath = "${src2}/debian/patches"; in [
(substituteAll {
src = ./fix-paths.patch;
inherit tzdata;
inherit tzdata mousetweaks;
})
"${patchPath}/45_suppress-printer-may-not-be-connected-notification.patch"
"${patchPath}/64_restore_terminal_keyboard_shortcut_schema.patch"
Original file line number Diff line number Diff line change
@@ -13,3 +13,14 @@

typedef struct _TzDB TzDB;
typedef struct _TzLocation TzLocation;
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -118,7 +118,7 @@ set_mousetweaks_daemon (GsdMouseManager *manager,
gboolean run_daemon = dwell_click_enabled || secondary_click_enabled;

if (run_daemon || manager->priv->mousetweaks_daemon_running)
- comm = g_strdup_printf ("mousetweaks %s",
+ comm = g_strdup_printf ("@mousetweaks@/bin/mousetweaks %s",
run_daemon ? "" : "-s");
else
return;
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1669,6 +1669,10 @@ in

monetdb = callPackage ../servers/sql/monetdb { };

mousetweaks = callPackage ../applications/accessibility/mousetweaks {
inherit (pkgs.xorg) libX11 libXtst libXfixes;
};

mp3blaster = callPackage ../applications/audio/mp3blaster { };

mp3fs = callPackage ../tools/filesystems/mp3fs { };