chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / os-specific / darwin / sensible-side-buttons / default.nix
blob135ca6a60dbd3c931abc35ec886c087653bfc79c
1 { lib
2 , fetchurl
3 , undmg
4 , stdenv
5 }:
7 stdenv.mkDerivation (finalAttrs: {
8   pname = "sensible-side-buttons-bin";
9   version = "1.0.6";
10   src = fetchurl {
11     url = "https://github.com/archagon/sensible-side-buttons/releases/download/${finalAttrs.version}/SensibleSideButtons-${finalAttrs.version}.dmg";
12     hash = "sha256-Hys678R6wf+M4eg6892rgU3Xxua5dLc9zjaU7HQ1iBs=";
13   };
15   sourceRoot = "SensibleSideButtons.app";
17   nativeBuildInputs = [ undmg ];
19   installPhase = ''
20     runHook preInstall
22     mkdir -p "$out/Applications/SensibleSideButtons.app"
23     cp -R . "$out/Applications/SensibleSideButtons.app"
24     mkdir "$out/bin"
25     ln -s "$out/Applications/SensibleSideButtons.app/Contents/MacOS/SensibleSideButtons" "$out/bin/${finalAttrs.pname}"
27     runHook postInstall
28   '';
30   meta = with lib; {
31     description = "Utilize mouse side navigation buttons";
32     homepage = "https://sensible-side-buttons.archagon.net";
33     license = licenses.unfree;
34     maintainers = with maintainers; [ yamashitax ];
35     platforms = platforms.darwin;
36   };