diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-03-22 12:26:11 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-03-22 12:26:11 -0500 |
| commit | b66fa26eaad3fcbf92af680b686f3d2680539128 (patch) | |
| tree | 0dfd7acd75087f3791325c134911723cc18fa3c4 /pkgs | |
| download | cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.tar cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.tar.gz cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.tar.bz2 cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.tar.lz cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.tar.xz cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.tar.zst cooklang-nix-b66fa26eaad3fcbf92af680b686f3d2680539128.zip | |
Adding to repo
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/chef/default.nix | 39 | ||||
| -rw-r--r-- | pkgs/cook-import/default.nix | 17 | ||||
| -rw-r--r-- | pkgs/vim-cooklang.nix | 15 |
3 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/chef/default.nix b/pkgs/chef/default.nix new file mode 100644 index 0000000..cb8e72b --- /dev/null +++ b/pkgs/chef/default.nix @@ -0,0 +1,39 @@ +{ rustPlatform, fetchFromGitHub, lib, installShellFiles +, ... }: +let + pname = "cooklang-chef"; + version = "0.9.1"; + src = fetchFromGitHub { + owner = "Zheoni"; + repo = "cooklang-chef"; + rev = "v${version}"; + hash = "sha256-zst5dsRbSMP9b6XcWua3DFkQK9XjYytoxvbmhmkqTmk="; + }; +in rustPlatform.buildRustPackage { + inherit pname version src; + + cargoHash = "sha256-NH8LznrRHcv93wtI6i6kCLGmzGKnqsbQQN6UUTt42MQ="; + + nativeBuildInputs = [ + installShellFiles + ]; + + postInstall = '' + export XDG_CONFIG_HOME=$out/share + + for s in bash fish zsh; do + installShellCompletion --cmd chef --$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"; + }; +} diff --git a/pkgs/cook-import/default.nix b/pkgs/cook-import/default.nix new file mode 100644 index 0000000..512745e --- /dev/null +++ b/pkgs/cook-import/default.nix @@ -0,0 +1,17 @@ +{ 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; + }; +} diff --git a/pkgs/vim-cooklang.nix b/pkgs/vim-cooklang.nix new file mode 100644 index 0000000..efe2f23 --- /dev/null +++ b/pkgs/vim-cooklang.nix @@ -0,0 +1,15 @@ +{ vimUtils, fetchFromGitHub, lib, ... }: +vimUtils.buildVimPlugin { + name = "vim-cooklang"; + src = fetchFromGitHub { + owner = "luizribeiro"; + repo = "vim-cooklang"; + rev = "861b7ab"; + sha256 = "sha256-3cppQJ4xo13kML8A0OQqV+p01Wxx3dV94ddjBAkFmp0="; + }; + + meta = with lib; { + homepage = "https://github.com/luizribeiro/vim-cooklang"; + description = "A cooklang syntax highlighting plugin for vim"; + }; +} |
