Replace vix with vic
All checks were successful
/ check (push) Successful in 2m38s

This commit is contained in:
Oliver Davies 2025-08-08 02:25:28 +01:00
parent 8d08b321b3
commit 546341fbc9
7 changed files with 20 additions and 18 deletions

View file

@ -8,7 +8,7 @@
tag-release
time-until
update-all-git-repos
vix
vic
zet-new
];

View file

@ -7,7 +7,7 @@
home.packages = with pkgs; [
import-to-jellyfin
vix
vic
yt-dlp
];
}

View file

@ -30,7 +30,7 @@
todos-edit
unmounter
update-all-git-repos
vix
vic
zet-new
];

View file

@ -4,7 +4,7 @@
additions =
final: prev:
import ../packages {
inherit prev;
inherit inputs prev;
pkgs = final;
};

View file

@ -1,4 +1,9 @@
{ pkgs, prev, ... }:
{
inputs,
pkgs,
prev,
...
}:
let
inherit (pkgs) callPackage;
@ -30,7 +35,7 @@ in
todos-edit = callPackage ./todos-edit.nix { };
unmounter = callPackage ./unmounter.nix { };
update-all-git-repos = callPackage ./update-all-git-repos.nix { };
vix = callPackage ./vix.nix { };
vic = callPackage ./vic.nix { inherit inputs; };
zet-new = callPackage ./zet-new.nix { };
vimPlugins = prev.vimPlugins // vimPlugins;

9
packages/vic.nix Executable file
View file

@ -0,0 +1,9 @@
{ inputs, pkgs }:
pkgs.writeShellApplication rec {
name = "vic";
runtimeInputs = with pkgs; [ neovim tmux ];
text = builtins.readFile "${inputs.rwxrob-dot}/scripts/${name}";
}

View file

@ -1,12 +0,0 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "vix";
runtimeInputs = with pkgs; [ neovim ];
text = ''
cmd=$(command -v "$1")
test -n "$cmd" && exec "$EDITOR" "$cmd"
'';
}