1
0
Fork 0
nix-overlay/packages/aerospace.nix
Daniel Kempkens 3365694f92
All checks were successful
Build / build-amd64-linux (push) Successful in 28s
Build / build-arm64-linux (push) Successful in 47s
aerospace: init
2024-06-07 14:26:20 +02:00

43 lines
1.1 KiB
Nix

{ pkgs, lib }:
pkgs.stdenvNoCC.mkDerivation rec {
pname = "aerospace";
version = "0.11.1-Beta";
src = pkgs.fetchurl {
url = "https://github.com/nikitabobko/AeroSpace/releases/download/v${version}/AeroSpace-v${version}.zip";
hash = "sha256-HEAHvP3M4UR/pQX/q2nYJZgh3ob5TpIk/TGNQgjD4PY=";
};
nativeBuildInputs = with pkgs; [ installShellFiles unzip ];
unpackPhase = ''
unzip $src
'';
installPhase = ''
runHook preInstall
mkdir -p "$out/Applications"
OUT_APP="$out/Applications/AeroSpace.app"
cp -r AeroSpace-v${version}/AeroSpace.app "$OUT_APP"
install -D AeroSpace-v${version}/bin/aerospace $out/bin/aerospace
installManPage AeroSpace-v${version}/manpage/*
runHook postInstall
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/aerospace --version
'';
meta = with lib; {
description = "AeroSpace is an i3-like tiling window manager for macOS";
homepage = "https://github.com/nikitabobko/AeroSpace";
license = licenses.mit;
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
};
}