aerospace: init
This commit is contained in:
parent
3eccd578f3
commit
3365694f92
4 changed files with 49 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
darwinPackages =
|
darwinPackages =
|
||||||
if lib.hasSuffix "darwin" system then {
|
if lib.hasSuffix "darwin" system then {
|
||||||
|
aerospace = callPackage ./packages/aerospace.nix { };
|
||||||
cliclick = callPackage ./packages/cliclick.nix { };
|
cliclick = callPackage ./packages/cliclick.nix { };
|
||||||
phantomjs = callPackage ./packages/phantomjs.nix { };
|
phantomjs = callPackage ./packages/phantomjs.nix { };
|
||||||
tabnine = callPackage ./packages/tabnine { };
|
tabnine = callPackage ./packages/tabnine { };
|
||||||
|
|
43
packages/aerospace.nix
Normal file
43
packages/aerospace.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ 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" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib }:
|
{ pkgs, lib }:
|
||||||
|
|
||||||
pkgs.stdenv.mkDerivation rec {
|
pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
pname = "phantomjs";
|
pname = "phantomjs";
|
||||||
version = "2.1.1";
|
version = "2.1.1";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ pkgs.stdenv.mkDerivation rec {
|
||||||
sha256 = "U4z0iCGasn4wnq/GKeK87pl2mQ/pCx7DNPVBd5FQ+ME=";
|
sha256 = "U4z0iCGasn4wnq/GKeK87pl2mQ/pCx7DNPVBd5FQ+ME=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pkgs; [ unzip ];
|
nativeBuildInputs = with pkgs; [ unzip ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
unzip $src
|
unzip $src
|
||||||
|
@ -18,7 +18,9 @@ pkgs.stdenv.mkDerivation rec {
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
install -D phantomjs-${version}-macosx/bin/phantomjs $out/bin/phantomjs
|
install -D phantomjs-${version}-macosx/bin/phantomjs $out/bin/phantomjs
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Based on: https://github.com/NixOS/nixpkgs/blob/91a00709aebb3602f172a0bf47ba1ef013e34835/pkgs/development/tools/tabnine/default.nix
|
# Based on: https://github.com/NixOS/nixpkgs/blob/91a00709aebb3602f172a0bf47ba1ef013e34835/pkgs/development/tools/tabnine/default.nix
|
||||||
|
|
||||||
let
|
let
|
||||||
stdenv = pkgs.stdenv;
|
stdenv = pkgs.stdenvNoCC;
|
||||||
|
|
||||||
sources = lib.importJSON ./sources.json;
|
sources = lib.importJSON ./sources.json;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue