mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
touchegg: modernize
This commit is contained in:
parent
5dce1034d6
commit
baffb1d464
1 changed files with 10 additions and 11 deletions
|
@ -12,19 +12,18 @@
|
|||
gtk3-x11,
|
||||
pkg-config,
|
||||
cmake,
|
||||
pantheon,
|
||||
withPantheon ? false,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "touchegg";
|
||||
version = "2.0.18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JoseExposito";
|
||||
repo = "touchegg";
|
||||
rev = version;
|
||||
sha256 = "sha256-7LJ5gD2e6e4edKDabqmsiXTdNKJ39557Q4sEGWF8H1U=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-7LJ5gD2e6e4edKDabqmsiXTdNKJ39557Q4sEGWF8H1U=";
|
||||
};
|
||||
|
||||
patches = lib.optionals withPantheon [
|
||||
|
@ -32,14 +31,14 @@ stdenv.mkDerivation rec {
|
|||
# Reverts https://github.com/JoseExposito/touchegg/pull/603
|
||||
(fetchpatch {
|
||||
url = "https://github.com/JoseExposito/touchegg/commit/34e947181d84620021601e7f28deb1983a154da8.patch";
|
||||
sha256 = "sha256-qbWwmEzVXvDAhhrGvMkKN4YNtnFfRW+Yra+i6VEQX4g=";
|
||||
hash = "sha256-qbWwmEzVXvDAhhrGvMkKN4YNtnFfRW+Yra+i6VEQX4g=";
|
||||
revert = true;
|
||||
})
|
||||
# Disable per-application gesture by default to make sure the default
|
||||
# config does not conflict with Pantheon switchboard settings.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/elementary/os-patches/commit/7d9b133e02132d7f13cf2fe850b2fe4c015c3c5e.patch";
|
||||
sha256 = "sha256-ZOGVkxiXoTORXC6doz5r9IObAbYjhsDjgg3HtzlTSUc=";
|
||||
hash = "sha256-ZOGVkxiXoTORXC6doz5r9IObAbYjhsDjgg3HtzlTSUc=";
|
||||
})
|
||||
];
|
||||
|
||||
|
@ -72,12 +71,12 @@ stdenv.mkDerivation rec {
|
|||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/JoseExposito/touchegg";
|
||||
description = "Linux multi-touch gesture recognizer";
|
||||
mainProgram = "touchegg";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
teams = [ teams.pantheon ];
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
teams = [ lib.teams.pantheon ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue