aboutsummaryrefslogtreecommitdiff
path: root/pkgs/chef/default.nix
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2025-10-07 14:48:27 -0500
committerChris Wells <chris@mathematicaster.org>2025-10-07 14:48:27 -0500
commit511d2a30dee6c779275f9132f292401515c9128f (patch)
treeff7d08e29be3e6e50d57ecdb6a39b2eb11207e88 /pkgs/chef/default.nix
parente4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455 (diff)
downloadcooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.tar
cooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.tar.gz
cooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.tar.bz2
cooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.tar.lz
cooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.tar.xz
cooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.tar.zst
cooklang-nix-511d2a30dee6c779275f9132f292401515c9128f.zip
Added update scripts
Diffstat (limited to 'pkgs/chef/default.nix')
-rw-r--r--pkgs/chef/default.nix13
1 files changed, 9 insertions, 4 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;
- };
+ }];
};
}