Add terminal image preview via chafa and release v0.1.3 updates

This commit is contained in:
vrubelroman 2026-04-24 15:35:11 +03:00
parent 6a518896b8
commit 6b23717572
4 changed files with 82 additions and 18 deletions

View file

@ -11,9 +11,9 @@
let
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
package = pkgs.buildGoModule {
packageBase = pkgs.buildGoModule {
pname = "vcom";
version = "0.1.0";
version = "0.1.3";
src = ./.;
vendorHash = null;
@ -32,6 +32,15 @@
platforms = platforms.linux;
};
};
package = pkgs.symlinkJoin {
name = "vcom";
paths = [ packageBase ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/vcom" \
--prefix PATH : "${lib.makeBinPath [ pkgs.chafa ]}"
'';
};
in {
packages.default = package;