aerospace: init at 0.14.2-Beta (#344015)

* maintainers: add alexandru0-dev

* aerospace: init at 0.14.2-Beta
This commit is contained in:
Alexandru Nechita 2024-10-12 12:38:46 +02:00 committed by GitHub
parent 237016d023
commit 69151ff73d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 64 additions and 0 deletions

View File

@ -960,6 +960,12 @@
githubId = 49609151;
name = "Popa Ioan Alexandru";
};
alexandru0-dev = {
email = "alexandru.italia32+nixpkgs@gmail.com";
github = "alexandru0-dev";
githubId = 45104896;
name = "Alexandru Nechita";
};
alexarice = {
email = "alexrice999@hotmail.co.uk";
github = "alexarice";

View File

@ -0,0 +1,58 @@
{
fetchzip,
gitUpdater,
installShellFiles,
lib,
stdenv,
versionCheckHook,
}:
let
appName = "AeroSpace.app";
version = "0.14.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";
hash = "sha256-v2D/IV9Va0zbGHEwSGt6jvDqQYqha290Lm6u+nZTS3A=";
};
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 ];
};
}