Add terminal image preview via chafa and release v0.1.3 updates
This commit is contained in:
parent
6a518896b8
commit
6b23717572
4 changed files with 82 additions and 18 deletions
13
flake.nix
13
flake.nix
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue