mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-09-05 18:30:39 +00:00
add nvs package
This commit is contained in:
28
flake.nix
28
flake.nix
@@ -21,6 +21,31 @@
|
|||||||
let
|
let
|
||||||
hosts = import ./hosts;
|
hosts = import ./hosts;
|
||||||
inherit (builtins) listToAttrs;
|
inherit (builtins) listToAttrs;
|
||||||
|
overlay = final: prev: {
|
||||||
|
nvs = prev.buildGoModule rec {
|
||||||
|
pname = "nvs";
|
||||||
|
version = "1.10.5";
|
||||||
|
|
||||||
|
src = prev.fetchFromGitHub {
|
||||||
|
owner = "y3owk1n";
|
||||||
|
repo = pname;
|
||||||
|
tag = "v${version}";
|
||||||
|
sha256 = "sha256-Qp5c2F383Z0MxTtDt3wmLgxiAwfIJWupVDCePrBxNQI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# # Add completion generation
|
||||||
|
nativeBuildInputs = [ prev.installShellFiles ];
|
||||||
|
postInstall = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
installShellCompletion --cmd nvs \
|
||||||
|
--bash <($out/bin/nvs completion bash) \
|
||||||
|
--fish <($out/bin/nvs completion fish) \
|
||||||
|
--zsh <($out/bin/nvs completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
vendorHash = "sha256-l2FdnXA+vKVRekcIKt1R+MxppraTsmo0b/B7RNqnxjA=";
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
darwinConfigurations = listToAttrs (
|
darwinConfigurations = listToAttrs (
|
||||||
@@ -32,6 +57,9 @@
|
|||||||
flake = self;
|
flake = self;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ overlay ];
|
||||||
|
}
|
||||||
(import ./darwin.nix)
|
(import ./darwin.nix)
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
|
@@ -44,6 +44,7 @@ with pkgs;
|
|||||||
posting
|
posting
|
||||||
|
|
||||||
# Editor
|
# Editor
|
||||||
|
nvs
|
||||||
neovim
|
neovim
|
||||||
fzf
|
fzf
|
||||||
lazygit
|
lazygit
|
||||||
|
Reference in New Issue
Block a user