Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchNpmDeps,
|
|
npmHooks,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
nodejs,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cook-cli";
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cooklang";
|
|
repo = "cookcli";
|
|
rev = "v${version}";
|
|
hash = "sha256-alrmQOt9PY155fIWXmp1m2dfhhkMOd4PkfkBWS2XXRg=";
|
|
};
|
|
|
|
cargoHash = "sha256-tYD49UrLzPPS8G2zy2GKFBK4SGYXQ7UEjFWKcHvUTSY=";
|
|
|
|
# Build without the self-updating feature
|
|
buildNoDefaultFeatures = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
openssl
|
|
nodejs
|
|
npmHooks.npmConfigHook
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
inherit src;
|
|
hash = "sha256-HxC9Tf+PZvvETuNqm1W3jaZx7SpYXlxZlI8FwGouK+s=";
|
|
};
|
|
|
|
preBuild = ''
|
|
npm run build-css
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/cooklang/cookcli/releases/tag/v${version}";
|
|
description = "Suite of tools to create shopping lists and maintain recipes";
|
|
homepage = "https://cooklang.org/";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "cook";
|
|
maintainers = [
|
|
lib.maintainers.emilioziniades
|
|
lib.maintainers.ginkogruen
|
|
];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
};
|
|
}
|