From 99a9b79591e125025f414ab88ad2ae71970f3900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E4=B8=8B?= Date: Fri, 7 Apr 2023 17:40:55 +0900 Subject: [PATCH 1/2] maintainers: add yamashitax --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ce37b445adfb..a845f74d6f16 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -18727,6 +18727,12 @@ githubId = 973709; name = "Jairo Llopis"; }; + yamashitax = { + email = "hello@yamashit.ax"; + github = "yamashitax"; + githubId = 99486674; + name = "山下"; + }; yana = { email = "yana@riseup.net"; github = "yanalunaterra"; From f41a52de42eb4858827fa7937489310a22c816e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E4=B8=8B?= Date: Wed, 6 Sep 2023 18:20:34 +0900 Subject: [PATCH 2/2] sensible-side-buttons: init at 1.0.6 --- .../darwin/sensible-side-buttons/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/os-specific/darwin/sensible-side-buttons/default.nix diff --git a/pkgs/os-specific/darwin/sensible-side-buttons/default.nix b/pkgs/os-specific/darwin/sensible-side-buttons/default.nix new file mode 100644 index 000000000000..135ca6a60dbd --- /dev/null +++ b/pkgs/os-specific/darwin/sensible-side-buttons/default.nix @@ -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; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0dce69e2545b..b1d9b3503a3f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29105,6 +29105,8 @@ with pkgs; 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_ro_ssids = wpa_supplicant.override {