Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
852 B
Nix
38 lines
852 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "discrete-scroll";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emreyolcu";
|
|
repo = "discrete-scroll";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-FYYtJUl1tvMu9yMK5VpHmMeM6otDIpoOvSGTjYNPBr0=";
|
|
};
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
$CC -O3 -framework ApplicationServices DiscreteScroll/main.c
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm555 a.out $out/bin/discretescroll
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Fix for macOS's unnecessary scroll wheel acceleration";
|
|
homepage = "https://github.com/emreyolcu/discrete-scroll";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.darwin;
|
|
maintainers = with lib.maintainers; [ bb2020 ];
|
|
};
|
|
})
|