Files
nixpkgs/pkgs/by-name/mo/mos/package.nix
Vinicius Deolindo 742dca5b34 mos: 4.2.0 -> 4.2.1
2026-06-15 20:32:25 -03:00

38 lines
989 B
Nix

{
lib,
stdenvNoCC,
fetchurl,
unzip,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mos";
version = "4.2.1";
src = fetchurl {
url = "https://github.com/Caldis/Mos/releases/download/${finalAttrs.version}/Mos.Versions.${finalAttrs.version}-20260531.1.zip";
hash = "sha256-LqaelvCS5E2tqTpVvaHN2rMynFJ7vV8G4A37eOlTlgo=";
};
sourceRoot = ".";
nativeBuildInputs = [
unzip
];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -r *.app $out/Applications
runHook postInstall
'';
meta = {
description = "Smooths scrolling and set mouse scroll directions independently on macOS";
homepage = "https://mos.caldis.me/";
changelog = "https://github.com/Caldis/Mos/releases/tag/${finalAttrs.version}";
license = lib.licenses.cc-by-nc-40;
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = lib.platforms.darwin;
};
})