Skip to content

Commit

Permalink
discrete-scroll: 0.1.1 -> 1.2.1 (#359465)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Nov 28, 2024
2 parents a04f874 + e58e116 commit 0ecd14b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 38 deletions.
37 changes: 37 additions & 0 deletions pkgs/by-name/di/discrete-scroll/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
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 -Dm755 a.out $out/bin/discretescroll
runHook postInstall
'';

meta = {
description = "Fix for OS X's scroll wheel problem";
homepage = "https://github.com/emreyolcu/discrete-scroll";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bb2020 ];
platforms = lib.platforms.darwin;
};
})
36 changes: 0 additions & 36 deletions pkgs/os-specific/darwin/discrete-scroll/default.nix

This file was deleted.

4 changes: 4 additions & 0 deletions pkgs/top-level/darwin-aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ mapAliases ({
cctools-llvm = pkgs.cctools; # added 2024-07-01
cctools-port = pkgs.cctools; # added 2024-07-17

### D ###

discrete-scroll = pkgs.discrete-scroll; # added 2024-11-27

### I ###

insert_dylib = throw "'darwin.insert_dylib' has been renamed to 'insert-dylib'"; # added 2024-04-04
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/darwin-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ impure-cmds // apple-source-packages // apple-source-headers // stubs // {

ios-deploy = callPackage ../os-specific/darwin/ios-deploy {};

discrete-scroll = callPackage ../os-specific/darwin/discrete-scroll { };

# See doc/packages/darwin-builder.section.md
linux-builder = lib.makeOverridable ({ modules }:
let
Expand Down

0 comments on commit 0ecd14b

Please sign in to comment.