Merge pull request #253352 from yamashitax/add-sensible-side-buttons
sensible-side-buttons: init at 1.0.6
This commit is contained in:
commit
8739e44a26
2 changed files with 39 additions and 0 deletions
37
pkgs/os-specific/darwin/sensible-side-buttons/default.nix
Normal file
37
pkgs/os-specific/darwin/sensible-side-buttons/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib
|
||||||
|
, fetchurl
|
||||||
|
, undmg
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "sensible-side-buttons-bin";
|
||||||
|
version = "1.0.6";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/archagon/sensible-side-buttons/releases/download/${finalAttrs.version}/SensibleSideButtons-${finalAttrs.version}.dmg";
|
||||||
|
hash = "sha256-Hys678R6wf+M4eg6892rgU3Xxua5dLc9zjaU7HQ1iBs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = "SensibleSideButtons.app";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ undmg ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p "$out/Applications/SensibleSideButtons.app"
|
||||||
|
cp -R . "$out/Applications/SensibleSideButtons.app"
|
||||||
|
mkdir "$out/bin"
|
||||||
|
ln -s "$out/Applications/SensibleSideButtons.app/Contents/MacOS/SensibleSideButtons" "$out/bin/${finalAttrs.pname}"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Utilize mouse side navigation buttons";
|
||||||
|
homepage = "https://sensible-side-buttons.archagon.net";
|
||||||
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ yamashitax ];
|
||||||
|
platforms = platforms.darwin;
|
||||||
|
};
|
||||||
|
})
|
|
@ -28650,6 +28650,8 @@ with pkgs;
|
||||||
|
|
||||||
teensy-udev-rules = callPackage ../os-specific/linux/teensy-udev-rules { };
|
teensy-udev-rules = callPackage ../os-specific/linux/teensy-udev-rules { };
|
||||||
|
|
||||||
|
sensible-side-buttons = callPackage ../os-specific/darwin/sensible-side-buttons { };
|
||||||
|
|
||||||
wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { };
|
wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { };
|
||||||
|
|
||||||
wpa_supplicant_ro_ssids = wpa_supplicant.override {
|
wpa_supplicant_ro_ssids = wpa_supplicant.override {
|
||||||
|
|
Loading…
Reference in a new issue