diff options
author | L1ght <2504082957@qq.com> | 2024-01-13 10:23:36 +0800 |
---|---|---|
committer | L1ght <2504082957@qq.com> | 2024-01-13 10:23:36 +0800 |
commit | 3bcb0ed710d3864482ca14848861eea5030157b6 (patch) | |
tree | 838cfd33046e725db87ee4fe63608a10f69e6089 /pkgs/by-name/mo/mos | |
parent | 8c7c922cc7ae240219da83b8cf4a90fa468ff761 (diff) |
mos: init at 3.4.1
Diffstat (limited to 'pkgs/by-name/mo/mos')
-rw-r--r-- | pkgs/by-name/mo/mos/package.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/mo/mos/package.nix b/pkgs/by-name/mo/mos/package.nix new file mode 100644 index 0000000000000..a85b77c4f3e00 --- /dev/null +++ b/pkgs/by-name/mo/mos/package.nix @@ -0,0 +1,35 @@ +{ lib +, stdenvNoCC +, fetchurl +, undmg +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "mos"; + version = "3.4.1"; + + src = fetchurl { + url = "https://github.com/Caldis/Mos/releases/download/${finalAttrs.version}/Mos.Versions.${finalAttrs.version}.dmg"; + sha256 = "38ea33e867815506414323484147b882b6d97df4af9759bca0a64d98c95029b3"; + }; + sourceRoot = "."; + + nativeBuildInputs = [ + undmg + ]; + + installPhase = '' + runHook preInstall + mkdir -p $out/Applications + cp -r *.app $out/Applications + runHook postInstall + ''; + + meta = with lib; { + description = "Smooths scrolling and set mouse scroll directions independently"; + homepage = "http://mos.caldis.me/"; + license = licenses.cc-by-nc-40; + maintainers = with maintainers; [ ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + platforms = platforms.darwin; + }; +}) |