nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 894 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5 unzip, 6}: 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "scroll-reverser"; 9 version = "1.9"; 10 11 src = fetchurl { 12 url = "https://web.archive.org/web/20250427052440/https://pilotmoon.com/downloads/ScrollReverser-${finalAttrs.version}.zip"; 13 hash = "sha256-CWHbtvjvTl7dQyvw3W583UIZ2LrIs7qj9XavmkK79YU="; 14 }; 15 16 dontUnpack = true; 17 18 nativeBuildInputs = [ unzip ]; 19 20 installPhase = '' 21 runHook preInstall 22 23 mkdir -p "$out/Applications" 24 unzip -d "$out/Applications" $src 25 26 runHook postInstall 27 ''; 28 29 meta = { 30 description = "Tool to reverse the direction of scrolling"; 31 homepage = "https://pilotmoon.com/scrollreverser/"; 32 license = lib.licenses.asl20; 33 maintainers = with lib.maintainers; [ 34 stackptr 35 ]; 36 platforms = lib.platforms.darwin; 37 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 38 }; 39})