depot/third_party/nixpkgs/pkgs/by-name/mo/mos/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
929 B
Nix

{ 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";
hash = "sha256-OOoz6GeBVQZBQyNIQUe4grbZffSvl1m8oKZNmMlQKbM=";
};
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/";
changelog = "https://github.com/Caldis/Mos/releases/tag/${finalAttrs.version}";
license = licenses.cc-by-nc-40;
maintainers = [ ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = platforms.darwin;
};
})