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
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
apple-sdk,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "autoraise";
|
|
version = "5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sbmpost";
|
|
repo = "AutoRaise";
|
|
rev = "v${version}";
|
|
hash = "sha256-OsvmNHpQ46+cWkR4Nz/9oIgSFSWLfCwZnAnRKRiNm5E=";
|
|
};
|
|
|
|
buildInputs = [
|
|
apple-sdk.privateFrameworksHook
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
$CXX -std=c++03 -fobjc-arc -D"NS_FORMAT_ARGUMENT(A)=" -D"SKYLIGHT_AVAILABLE=1" -o AutoRaise AutoRaise.mm -framework AppKit -framework SkyLight
|
|
bash create-app-bundle.sh
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/Applications $out/bin
|
|
mv AutoRaise.app $out/Applications/AutoRaise.app
|
|
ln -s $out/Applications/AutoRaise.app/Contents/MacOS/AutoRaise $out/bin/autoraise
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Automatically raise and focus a window when hovering over it with the mouse";
|
|
homepage = "https://github.com/sbmpost/AutoRaise";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ nickhu ];
|
|
mainProgram = "autoraise";
|
|
platforms = lib.platforms.darwin;
|
|
};
|
|
}
|