mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
38 lines
989 B
Nix
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;
|
|
};
|
|
})
|