8 stdenv.mkDerivation rec {
12 src = fetchFromGitHub {
16 hash = "sha256-OsvmNHpQ46+cWkR4Nz/9oIgSFSWLfCwZnAnRKRiNm5E=";
19 buildInputs = with darwin.apple_sdk.frameworks; [
28 $CXX -std=c++03 -fobjc-arc -D"NS_FORMAT_ARGUMENT(A)=" -D"SKYLIGHT_AVAILABLE=1" -o AutoRaise AutoRaise.mm -framework AppKit -framework SkyLight
29 bash create-app-bundle.sh
35 mkdir -p $out/Applications $out/bin
36 mv AutoRaise.app $out/Applications/AutoRaise.app
37 ln -s $out/Applications/AutoRaise.app/Contents/MacOS/AutoRaise $out/bin/autoraise
42 description = "AutoRaise (and focus) a window when hovering over it with the mouse";
43 homepage = "https://github.com/sbmpost/AutoRaise";
44 license = lib.licenses.gpl3Only;
45 maintainers = with lib.maintainers; [ nickhu ];
46 mainProgram = "autoraise";
47 platforms = lib.platforms.darwin;