mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
autoraise: init at 5.3 (#349777)
* autoraise: init at 5.3 * Update pkgs/by-name/au/autoraise/package.nix Co-authored-by: ジムワルド <96021122+zimward@users.noreply.github.com> --------- Co-authored-by: ジムワルド <96021122+zimward@users.noreply.github.com>
This commit is contained in:
parent
3afe032927
commit
0595d469c7
49
pkgs/by-name/au/autoraise/package.nix
Normal file
49
pkgs/by-name/au/autoraise/package.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
darwin,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "autoraise";
|
||||
version = "5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sbmpost";
|
||||
repo = "AutoRaise";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-OsvmNHpQ46+cWkR4Nz/9oIgSFSWLfCwZnAnRKRiNm5E=";
|
||||
};
|
||||
|
||||
buildInputs = with darwin.apple_sdk.frameworks; [
|
||||
AppKit
|
||||
SkyLight
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
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 = "AutoRaise (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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user