mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
aerospace: init at 0.14.2-Beta (#344015)
* maintainers: add alexandru0-dev * aerospace: init at 0.14.2-Beta
This commit is contained in:
parent
237016d023
commit
69151ff73d
@ -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";
|
||||
|
58
pkgs/by-name/ae/aerospace/package.nix
Normal file
58
pkgs/by-name/ae/aerospace/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user