mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
fetchzip,
|
|
gitUpdater,
|
|
installShellFiles,
|
|
lib,
|
|
stdenv,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
let
|
|
appName = "AeroSpace.app";
|
|
version = "0.15.2-Beta";
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "aerospace";
|
|
|
|
inherit version;
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/nikitabobko/AeroSpace/releases/download/v${version}/AeroSpace-v${version}.zip";
|
|
sha256 = "sha256-jOSUtVSiy/S4nsgvfZZqZjxsppqNi90edn8rcTa+pFQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/Applications
|
|
mv ${appName} $out/Applications
|
|
cp -R bin $out
|
|
mkdir -p $out/share
|
|
runHook postInstall
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage manpage/*
|
|
installShellCompletion --bash shell-completion/bash/aerospace
|
|
installShellCompletion --fish shell-completion/fish/aerospace.fish
|
|
installShellCompletion --zsh shell-completion/zsh/_aerospace
|
|
'';
|
|
|
|
passthru.tests.can-print-version = [ versionCheckHook ];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "https://github.com/nikitabobko/AeroSpace.git";
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
meta = {
|
|
license = lib.licenses.mit;
|
|
mainProgram = "aerospace";
|
|
homepage = "https://github.com/nikitabobko/AeroSpace";
|
|
description = "i3-like tiling window manager for macOS";
|
|
platforms = lib.platforms.darwin;
|
|
maintainers = with lib.maintainers; [ alexandru0-dev ];
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
};
|
|
}
|