Compare commits

...

2 Commits

Author SHA1 Message Date
9086ce9759
feat(nix/pkgs): add shell completions for bob-nvim
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
2024-09-05 10:58:07 -05:00
fe008d81cf
feat(nix): use nixpkgs master version for zathura 2024-09-05 10:57:43 -05:00
3 changed files with 15 additions and 1 deletions

View File

@ -5,6 +5,7 @@
nix.url = "github:nixos/nix";
deploy-rs.url = "github:serokell/deploy-rs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
bob = {
flake = false;

View File

@ -9,6 +9,9 @@
wrapProgram $out/bin/lxappearance --prefix GDK_BACKEND : x11
'';
});
# TODO: Remove this when Zathura's update for 0.5.8 hits nixpkgs-unstable,
# see status of https://nixpk.gs/pr-tracker.html?pr=337383
zathura = inputs.nixpkgs-master.legacyPackages.${final.system}.pkgs.zathura;
wezterm = inputs.wezterm.packages.${final.system}.default;
opensnitch-ui = prev.opensnitch-ui.overrideAttrs (oldAttrs: {
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ prev.python311Packages.qt-material ];

View File

@ -1,9 +1,11 @@
{ rustPlatform, fetchFromGitHub }:
{ installShellFiles, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "bob";
version = "3.0.1";
buildInputs = [ installShellFiles ];
src = fetchFromGitHub {
owner = "MordechaiHadad";
repo = "bob";
@ -11,4 +13,12 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-Op/NXWssylgAOb1BccSOz7JqXFranzAsGICFMF3o/K8=";
};
cargoLock.lockFile = "${src}/Cargo.lock";
postInstall = # bash
''
installShellCompletion --cmd bob \
--bash <($out/bin/bob complete bash) \
--zsh <($out/bin/bob complete zsh) \
--fish <($out/bin/bob complete fish)
'';
}