From ded9b9fdfb23f231ca2ad56b9b25558c132a8fe9 Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Fri, 24 Apr 2026 22:40:15 +0300 Subject: [PATCH] Ship ueberzugpp with packaged installs --- PKGBUILD | 2 +- README.md | 6 ++++++ flake.nix | 5 +++++ scripts/build-deb.sh | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 7c15d91..0d62887 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgdesc="Terminal file manager inspired by Midnight Commander" arch=("x86_64" "aarch64") url="https://github.com/vrubelroman/vcom" license=("MIT") -depends=("glibc") +depends=("glibc" "ueberzugpp") makedepends=("go") source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=("SKIP") diff --git a/README.md b/README.md index a8e9e86..8b1fddd 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,8 @@ Install into user profile: nix profile add github:vrubelroman/vcom?ref=v0.1.5 ``` +The Nix package wraps `vcom` with `ueberzugpp` in `PATH`, so image preview works in non-`kitty` terminals out of the box. + ### Debian / Ubuntu Download the release `.deb` for `v0.1.5`, then install: @@ -81,6 +83,8 @@ Download the release `.deb` for `v0.1.5`, then install: sudo apt install ./vcom_0.1.5_amd64.deb ``` +The Debian package declares `ueberzugpp` as a dependency for image preview outside `kitty`. + Install a Nerd Font (example): ```bash @@ -100,6 +104,8 @@ A `PKGBUILD` is included in the repository: makepkg -si ``` +The Arch package depends on `ueberzugpp`, so non-`kitty` image preview is installed together with `vcom`. + ## Configuration Optional config lookup order: diff --git a/flake.nix b/flake.nix index 1887443..ffc238a 100644 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,11 @@ package = pkgs.symlinkJoin { name = "vcom"; paths = [ packageBase ]; + nativeBuildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram "$out/bin/vcom" \ + --prefix PATH : "${lib.makeBinPath [ pkgs.ueberzugpp ]}" + ''; }; in { packages.default = package; diff --git a/scripts/build-deb.sh b/scripts/build-deb.sh index 3d73a23..9b9cab9 100755 --- a/scripts/build-deb.sh +++ b/scripts/build-deb.sh @@ -29,6 +29,7 @@ Section: utils Priority: optional Architecture: amd64 Maintainer: Roman Vrubel +Depends: ueberzugpp Description: Terminal file manager inspired by Midnight Commander A two-pane terminal file manager with inspect mode and text previews. EOF