add crtui

This commit is contained in:
2026-11-05 12:51:01 +01:00
parent 17d3f5a8d7
commit bcfccbdcb2
3 changed files with 53 additions and 2 deletions
+5 -2
View File
@@ -54,6 +54,9 @@
"com.apple.mouse.tapBehavior" = 1; "com.apple.mouse.tapBehavior" = 1;
"com.apple.trackpad.scaling" = 0.875; "com.apple.trackpad.scaling" = 0.875;
}; };
".GlobalPreferences" = {
"com.apple.mouse.scaling" = 0.5;
};
trackpad = { trackpad = {
Dragging = true; Dragging = true;
Clicking = true; Clicking = true;
@@ -87,7 +90,7 @@
homebrew = { homebrew = {
enable = true; enable = true;
casks = (import ./cask.nix) ++ (lib.attrByPath [ "extras" "casks" ] [ ] host); casks = (import ./cask.nix) ++ (lib.attrByPath [ "extras" "casks" ] [ ] host);
taps = []; taps = [ ];
global = { global = {
autoUpdate = true; autoUpdate = true;
}; };
@@ -95,7 +98,7 @@
autoUpdate = true; autoUpdate = true;
upgrade = true; upgrade = true;
cleanup = "zap"; cleanup = "zap";
extraFlags = ["--force" ]; extraFlags = [ "--force" ];
}; };
}; };
} }
+3
View File
@@ -11,6 +11,9 @@ with pkgs;
posting posting
opencode opencode
# TUI
(callPackage ../pkgs/crtui.nix { })
# NVim # NVim
nvs nvs
lua lua
+45
View File
@@ -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;
};
}