diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-10-06 13:56:07 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-10-06 13:56:07 -0500 |
| commit | e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455 (patch) | |
| tree | 8d641ec4b3697a9b3ec703d8f8a52eedf21d45d7 /pkgs/chef/default.nix | |
| parent | 100d1e49f6578d4c30a7f6b5baf3704a7c9b9510 (diff) | |
| download | cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.gz cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.bz2 cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.lz cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.xz cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.tar.zst cooklang-nix-e4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455.zip | |
Updated cooklang-chef
Diffstat (limited to 'pkgs/chef/default.nix')
| -rw-r--r-- | pkgs/chef/default.nix | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/chef/default.nix b/pkgs/chef/default.nix index b765966..2830cae 100644 --- a/pkgs/chef/default.nix +++ b/pkgs/chef/default.nix @@ -1,39 +1,39 @@ -{ rustPlatform, fetchFromGitHub, lib, installShellFiles -, ... }: -let +{ rustPlatform, fetchFromGitHub, lib, installShellFiles }: +rustPlatform.buildRustPackage rec { pname = "cooklang-chef"; - version = "0.10.0"; + version = "0.10.1"; src = fetchFromGitHub { owner = "Zheoni"; repo = "cooklang-chef"; rev = "v${version}"; - hash = "sha256-YPsofecsdiJE4rWVy82ao99YZiCPEPoF14XavTAhq+w="; + hash = "sha256-U/zEtDHIAjBakMjIqpJeFzTxof8SHSgLj9zjgND6q1Q="; }; -in rustPlatform.buildRustPackage { - inherit pname version src; - cargoHash = "sha256-77KPW4SQ9KI0H+ND3mFITJjftLjpLMXi7qp0PUZOINw="; + cargoLock.lockFile = "${src}/Cargo.lock"; nativeBuildInputs = [ installShellFiles ]; postInstall = '' + # Without setting $XDG_CONFIG_HOME, `chef` will complain when trying to generate completion scripts export XDG_CONFIG_HOME=$out/share for s in bash fish zsh; do - installShellCompletion --cmd chef --$s <($out/bin/chef generate-completions $s) + installShellCompletion --cmd ${meta.mainProgram} --$s <($out/bin/chef generate-completions $s) done ''; - # passthru = { - # inherit ui; - # }; - 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 = { + name = "Chris Wells"; + github = "the-mathematicaster"; + email = "chris@mathematicaster.org"; + githubId = 99217745; + }; }; } |
