aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2025-10-06 13:56:07 -0500
committerChris Wells <chris@mathematicaster.org>2025-10-06 13:56:07 -0500
commite4e3aa82c6ae2e6ca4401bad82a8f4a7a0610455 (patch)
tree8d641ec4b3697a9b3ec703d8f8a52eedf21d45d7 /pkgs
parent100d1e49f6578d4c30a7f6b5baf3704a7c9b9510 (diff)
downloadcooklang-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')
-rw-r--r--pkgs/chef/default.nix26
-rw-r--r--pkgs/cook-import/default.nix17
2 files changed, 13 insertions, 30 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;
+ };
};
}
diff --git a/pkgs/cook-import/default.nix b/pkgs/cook-import/default.nix
deleted file mode 100644
index 512745e..0000000
--- a/pkgs/cook-import/default.nix
+++ /dev/null
@@ -1,17 +0,0 @@
-{ poetry2nix, fetchFromGitHub, lib, ... }:
-poetry2nix.mkPoetryApplication {
- projectDir = fetchFromGitHub {
- owner = "cooklang";
- repo = "cook-import";
- rev = "d92e44a";
- hash = "sha256-SSrLN0qhHNalF8RrsZvezqZvAkcKCLukSGW9f3IHIIE=";
- };
-
- meta = with lib; {
- homepage = "https://github.com/cooklang/cook-import";
- description = "A command-line tool to import recipes into Cooklang format";
- license = licenses.mit;
- mainProgram = "cook-import";
- broken = true;
- };
-}