legcord: 1.0.6 -> 1.0.8 (#377219)
[NixPkgs.git] / pkgs / by-name / mo / mos / package.nix
blob5d0f6cc1f75be88469b61a3a85da53bee8413cbd
2   lib,
3   stdenvNoCC,
4   fetchurl,
5   undmg,
6 }:
7 stdenvNoCC.mkDerivation (finalAttrs: {
8   pname = "mos";
9   version = "3.4.1";
11   src = fetchurl {
12     url = "https://github.com/Caldis/Mos/releases/download/${finalAttrs.version}/Mos.Versions.${finalAttrs.version}.dmg";
13     hash = "sha256-OOoz6GeBVQZBQyNIQUe4grbZffSvl1m8oKZNmMlQKbM=";
14   };
15   sourceRoot = ".";
17   nativeBuildInputs = [
18     undmg
19   ];
21   installPhase = ''
22     runHook preInstall
23     mkdir -p $out/Applications
24     cp -r *.app $out/Applications
25     runHook postInstall
26   '';
28   meta = with lib; {
29     description = "Smooths scrolling and set mouse scroll directions independently";
30     homepage = "https://mos.caldis.me/";
31     changelog = "https://github.com/Caldis/Mos/releases/tag/${finalAttrs.version}";
32     license = licenses.cc-by-nc-40;
33     maintainers = [ ];
34     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
35     platforms = platforms.darwin;
36   };