From 0db8c73cf6d106c54467c76dd071d99d656327aa Mon Sep 17 00:00:00 2001 From: commiterate <111539270+commiterate@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:31:35 -0400 Subject: [PATCH] azurite: Fix Darwin builds. Switch from rec to finalAttrs. --- pkgs/by-name/az/azurite/package.nix | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/az/azurite/package.nix b/pkgs/by-name/az/azurite/package.nix index 5ad12be555d8..1069a16f4b13 100644 --- a/pkgs/by-name/az/azurite/package.nix +++ b/pkgs/by-name/az/azurite/package.nix @@ -1,21 +1,22 @@ { lib, - buildNpmPackage, - fetchFromGitHub, stdenv, + buildNpmPackage, + clang_20, + fetchFromGitHub, libsecret, + nodejs, pkg-config, - python3, }: -buildNpmPackage rec { +buildNpmPackage (finalAttrs: { pname = "azurite"; version = "3.35.0"; src = fetchFromGitHub { owner = "Azure"; repo = "Azurite"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-sVYiHQJ3nR5vM+oPAHzr/MjuNBMY14afqCHpw32WCiQ="; }; @@ -23,18 +24,21 @@ buildNpmPackage rec { nativeBuildInputs = [ pkg-config - python3 - ]; + nodejs.python + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ clang_20 ]; # clang_21 breaks @vscode/vsce's optional dependency keytar + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libsecret ]; meta = { - description = "Open source Azure Storage API compatible server"; + description = "Lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies"; homepage = "https://github.com/Azure/Azurite"; - changelog = "https://github.com/Azure/Azurite/releases/tag/v${version}"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ danielalvsaaker ]; mainProgram = "azurite"; + maintainers = with lib.maintainers; [ + danielalvsaaker + ]; }; -} +})