mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2026-11-06 11:21:52 +00:00
add crtui
This commit is contained in:
+5
-2
@@ -54,6 +54,9 @@
|
||||
"com.apple.mouse.tapBehavior" = 1;
|
||||
"com.apple.trackpad.scaling" = 0.875;
|
||||
};
|
||||
".GlobalPreferences" = {
|
||||
"com.apple.mouse.scaling" = 0.5;
|
||||
};
|
||||
trackpad = {
|
||||
Dragging = true;
|
||||
Clicking = true;
|
||||
@@ -87,7 +90,7 @@
|
||||
homebrew = {
|
||||
enable = true;
|
||||
casks = (import ./cask.nix) ++ (lib.attrByPath [ "extras" "casks" ] [ ] host);
|
||||
taps = [];
|
||||
taps = [ ];
|
||||
global = {
|
||||
autoUpdate = true;
|
||||
};
|
||||
@@ -95,7 +98,7 @@
|
||||
autoUpdate = true;
|
||||
upgrade = true;
|
||||
cleanup = "zap";
|
||||
extraFlags = ["--force" ];
|
||||
extraFlags = [ "--force" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,6 +11,9 @@ with pkgs;
|
||||
posting
|
||||
opencode
|
||||
|
||||
# TUI
|
||||
(callPackage ../pkgs/crtui.nix { })
|
||||
|
||||
# NVim
|
||||
nvs
|
||||
lua
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchzip,
|
||||
}:
|
||||
let
|
||||
version = "0.4.1";
|
||||
plat = {
|
||||
"aarch64-darwin" = "darwin_arm64";
|
||||
"x86_64-darwin" = "darwin_amd64";
|
||||
"aarch64-linux" = "linux_arm64";
|
||||
"x86_64-linux" = "linux_amd64";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "crtui";
|
||||
inherit version;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/ksckaan1/crtui/releases/download/v${version}/crtui_${version}_${
|
||||
plat.${stdenv.hostPlatform.system}
|
||||
or (throw "crtui: unsupported platform ${stdenv.hostPlatform.system}")
|
||||
}.tar.gz";
|
||||
hash = "sha256-Rue9l2dZR8J6+XCV4HGOvYywklDa9jq4I6IUlhmtTF8=";
|
||||
stripRoot = false; # tarball has no single top-level dir
|
||||
};
|
||||
|
||||
# Prebuilt binary: skip fixup so llvm-strip does not invalidate the
|
||||
# ad-hoc Mach-O signature macOS arm64 requires.
|
||||
dontFixup = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 $src/crtui $out/bin/crtui
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Terminal-based container registry management tool";
|
||||
homepage = "https://github.com/ksckaan1/crtui";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "crtui";
|
||||
platforms = builtins.attrNames plat;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user