From b8bd42e01bf522e8db248daf69e5bb7ace6126c1 Mon Sep 17 00:00:00 2001 From: ginkogruen Date: Thu, 25 Sep 2025 16:10:06 +0200 Subject: [PATCH 1/2] maintainers: add ginkogruen --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5d0a01ce9272..dce37486d3cd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9398,6 +9398,11 @@ githubId = 5549373; name = "Jochen Kiemes"; }; + ginkogruen = { + name = "Jasper Wolter"; + github = "ginkogruen"; + githubId = 93037574; + }; giodamelio = { name = "Giovanni d'Amelio"; email = "gio@damelio.net"; From b1b148584aa9277e1835ec8fc849724d07d718d8 Mon Sep 17 00:00:00 2001 From: ginkogruen Date: Thu, 25 Sep 2025 16:54:46 +0200 Subject: [PATCH 2/2] cook-cli: 0.14.0 -> 0.18.1 Update in reference to this release of cook-cli: https://github.com/cooklang/cookcli/releases/tag/v0.18.1 In comparison with the previous release cook-cli did undergo a rewrite which lead to changes in packaging. --- pkgs/by-name/co/cook-cli/package.nix | 43 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/co/cook-cli/package.nix b/pkgs/by-name/co/cook-cli/package.nix index 30552686f8d1..80deaa80aad9 100644 --- a/pkgs/by-name/co/cook-cli/package.nix +++ b/pkgs/by-name/co/cook-cli/package.nix @@ -1,60 +1,61 @@ { lib, fetchFromGitHub, - buildNpmPackage, + fetchNpmDeps, + npmHooks, rustPlatform, pkg-config, openssl, + nodejs, }: rustPlatform.buildRustPackage rec { pname = "cook-cli"; - version = "0.14.0"; + version = "0.18.1"; src = fetchFromGitHub { owner = "cooklang"; repo = "cookcli"; rev = "v${version}"; - hash = "sha256-jaAgmqUuqldcBlrwqXsausXPP35RZqM1VasYyA0pPO8="; + hash = "sha256-alrmQOt9PY155fIWXmp1m2dfhhkMOd4PkfkBWS2XXRg="; }; - cargoHash = "sha256-JVWa5vQcskXEgOqAxr2CKQDMjYakA1HqinDbKfRp/Wo="; + cargoHash = "sha256-tYD49UrLzPPS8G2zy2GKFBK4SGYXQ7UEjFWKcHvUTSY="; + + # Build without the self-updating feature + buildNoDefaultFeatures = true; nativeBuildInputs = [ pkg-config openssl + nodejs + npmHooks.npmConfigHook ]; buildInputs = [ openssl ]; - postPatch = '' - rm -rf "ui/public" - ln -s ${passthru.ui} "ui/public" - ''; - OPENSSL_NO_VENDOR = 1; - passthru.ui = buildNpmPackage { - name = "ui"; - src = "${src}/ui"; - npmDepsHash = "sha256-zx8G6Raop1EZAVy1YCF5ag5aL9NutRxbPfTARmjP2SY="; - makeCacheWritable = true; - npmFlags = [ "--legacy-peer-deps" ]; - installPhase = '' - runHook preInstall - mv public/ $out - runHook postInstall - ''; + 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 ]; + maintainers = [ + lib.maintainers.emilioziniades + lib.maintainers.ginkogruen + ]; platforms = lib.platforms.linux ++ lib.platforms.darwin; }; }