add cookcli

This commit is contained in:
Tyler Starr 2024-02-26 18:54:55 -08:00
parent f2c5b7de19
commit bc3054777f
3 changed files with 44 additions and 0 deletions

View File

@ -14,6 +14,7 @@ in {
chezmoi
nix-init
btop
cookcli
rbw
# for rbw

View File

@ -5,4 +5,5 @@ final: prev: {
sway-scratchpad = final.callPackage ../pkgs/sway-scratchpad.nix {};
advcpmv = final.callPackage ../pkgs/advcpmv.nix {};
taskopen = final.callPackage ../pkgs/taskopen.nix {};
cookcli = final.callPackage ../pkgs/cookcli.nix {};
}

View File

@ -0,0 +1,42 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "cookcli";
version = "0.8.0";
src = fetchFromGitHub {
owner = "cooklang";
repo = "cookcli";
rev = "v${version}";
hash = "sha256-43++90St6XxUn7fhCooH+YEZhA2eTJcPVASaDMOZ8EU=";
};
cargoHash = "sha256-2Pr6td6TpXcUna2GmLHMDKxLFsWN3LM72/PvFyFOHw0=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
env = {
OPENSSL_NO_VENDOR = true;
};
meta = with lib; {
description = "Command line program which provides a suite of tools to create shopping lists and maintain recipes";
homepage = "https://github.com/cooklang/cookcli.git";
changelog = "https://github.com/cooklang/cookcli/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "cookcli";
};
}