aboutsummaryrefslogtreecommitdiff
path: root/pkgs/chef/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/chef/default.nix')
-rw-r--r--pkgs/chef/default.nix26
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;
+ };
};
}