From 511d2a30dee6c779275f9132f292401515c9128f Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Tue, 7 Oct 2025 14:48:27 -0500 Subject: Added update scripts --- pkgs/chef/default.nix | 13 +++++++++---- pkgs/vim-cooklang.nix | 15 ++++++++++++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/chef/default.nix b/pkgs/chef/default.nix index 2830cae..0cbbebb 100644 --- a/pkgs/chef/default.nix +++ b/pkgs/chef/default.nix @@ -1,4 +1,4 @@ -{ rustPlatform, fetchFromGitHub, lib, installShellFiles }: +{ rustPlatform, fetchFromGitHub, lib, installShellFiles, gitUpdater, serve ? true }: rustPlatform.buildRustPackage rec { pname = "cooklang-chef"; version = "0.10.1"; @@ -11,6 +11,9 @@ rustPlatform.buildRustPackage rec { cargoLock.lockFile = "${src}/Cargo.lock"; + # optionally disable the webserver + buildNoDefaultFeatures = !serve; + nativeBuildInputs = [ installShellFiles ]; @@ -20,20 +23,22 @@ rustPlatform.buildRustPackage rec { export XDG_CONFIG_HOME=$out/share for s in bash fish zsh; do - installShellCompletion --cmd ${meta.mainProgram} --$s <($out/bin/chef generate-completions $s) + installShellCompletion --cmd chef --$s <($out/bin/chef generate-completions $s) done ''; + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; + meta = with lib; { homepage = "https://github.com/Zheoni/cooklang-chef"; description = "A CLI to manage cooklang recipes with extensions"; license = licenses.mit; mainProgram = "chef"; - maintainer = { + maintainers = [{ name = "Chris Wells"; github = "the-mathematicaster"; email = "chris@mathematicaster.org"; githubId = 99217745; - }; + }]; }; } diff --git a/pkgs/vim-cooklang.nix b/pkgs/vim-cooklang.nix index efe2f23..f47fcfe 100644 --- a/pkgs/vim-cooklang.nix +++ b/pkgs/vim-cooklang.nix @@ -1,15 +1,24 @@ -{ vimUtils, fetchFromGitHub, lib, ... }: +{ vimUtils, fetchFromGitHub, lib, unstableGitUpdater }: vimUtils.buildVimPlugin { name = "vim-cooklang"; src = fetchFromGitHub { owner = "luizribeiro"; repo = "vim-cooklang"; - rev = "861b7ab"; - sha256 = "sha256-3cppQJ4xo13kML8A0OQqV+p01Wxx3dV94ddjBAkFmp0="; + rev = "ba334ed"; + hash = "sha256-vWlk7G1V4DLC0G0f3GLEG3JsvAwJ637CPocmMmFxQek="; }; + passthru.updateScript = unstableGitUpdater {}; + meta = with lib; { homepage = "https://github.com/luizribeiro/vim-cooklang"; description = "A cooklang syntax highlighting plugin for vim"; + license = licenses.mit; + maintainers = [{ + name = "Chris Wells"; + github = "the-mathematicaster"; + email = "chris@mathematicaster.org"; + githubId = 99217745; + }]; }; } -- cgit v1.2.3