diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/core-amqp.nix b/pkgs/by-name/az/azure-sdk-for-cpp/core-amqp.nix index 18e9711e42ae..a3d63c4cc49c 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/core-amqp.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/core-amqp.nix @@ -1,18 +1,25 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-core-amqp"; - version = "1.0.0-beta.12-unreleased-2025-06-25"; + version = "1.0.0-beta.11"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-core-amqp_1.0.0-beta.11"; + hash = "sha256-MQsz5Dmv1BwfUaN1VXMC3hPdMHihlgOBaukp5wgTNJc="; + }; sourceRoot = "source/sdk/core/azure-core-amqp"; postPatch = '' @@ -49,4 +56,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-core-amqp_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure SDK AMQP Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/core/azure-core-amqp/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/core-tracing-opentelemetry.nix b/pkgs/by-name/az/azure-sdk-for-cpp/core-tracing-opentelemetry.nix index f9339531359d..a20d1fed7e25 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/core-tracing-opentelemetry.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/core-tracing-opentelemetry.nix @@ -1,19 +1,26 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, opentelemetry-cpp, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-core-tracing-opentelemetry"; - version = "1.0.0-beta.5-unreleased-2025-05-21"; + version = "1.0.0-beta.4"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-core-tracing-opentelemetry_1.0.0-beta.4"; + hash = "sha256-3PqHpoi7zlTUYJ4A4APKp2yPg9nVwgGiyOZ+bng4Crk="; + }; sourceRoot = "source/sdk/core/azure-core-tracing-opentelemetry"; postPatch = '' @@ -45,5 +52,18 @@ stdenv.mkDerivation (finalAttrs: { doCheck = false; - meta = azure-sdk-for-cpp.meta; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-core-tracing-opentelemetry_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure SDK Core Tracing Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/core/azure-core-tracing-opentelemetry/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/core.nix b/pkgs/by-name/az/azure-sdk-for-cpp/core.nix index 3a0503e6de7a..358dca5dde0a 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/core.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/core.nix @@ -1,20 +1,27 @@ { stdenv, azure-sdk-for-cpp, + fetchFromGitHub, cmake, ninja, curl, libxml2, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-core"; - version = "1.16.0"; + version = "1.16.1"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-core_1.16.1"; + hash = "sha256-gMINz3bH80l0QYX3iKJlL962WIMujR1wuN+t4t7g7qg="; + }; sourceRoot = "source/sdk/core/azure-core"; postPatch = '' @@ -47,5 +54,20 @@ stdenv.mkDerivation (finalAttrs: { moveToOutput "share" $dev ''; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-core_(.*)" + ]; + }; + doCheck = false; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure SDK Core Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/core/azure-core/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/data-tables.nix b/pkgs/by-name/az/azure-sdk-for-cpp/data-tables.nix new file mode 100644 index 000000000000..b409b8537be8 --- /dev/null +++ b/pkgs/by-name/az/azure-sdk-for-cpp/data-tables.nix @@ -0,0 +1,73 @@ +{ + stdenv, + fetchFromGitHub, + azure-sdk-for-cpp, + cmake, + ninja, + openssl, + libxml2, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "azure-sdk-for-cpp-data-tables"; + version = "1.0.0-beta.6"; + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-data-tables_1.0.0-beta.6"; + hash = "sha256-gfkjoA16UP6ToIueYPfhQFh+LEhlVtvTk3qRJoHR5OY="; + }; + sourceRoot = "source/sdk/tables/azure-data-tables"; + + postPatch = '' + sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt + ''; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + ninja + ]; + + buildInputs = [ + openssl + libxml2 + ]; + propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; + + env = { + AZURE_SDK_DISABLE_AUTO_VCPKG = 1; + }; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWARNINGS_AS_ERRORS=OFF" + ]; + + postInstall = '' + moveToOutput "share" $dev + ''; + + doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-data-tables_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Tables client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/tables/azure-data-tables/CHANGELOG.md"; + } + ); +}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/identity.nix b/pkgs/by-name/az/azure-sdk-for-cpp/identity.nix index 119f804425e7..dfdf71f8ef5b 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/identity.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/identity.nix @@ -1,19 +1,26 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, openssl, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-identity"; - version = "1.12.0"; + version = "1.13.2"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-identity_1.13.2"; + hash = "sha256-864fU7BkVWXE0vVEYniXQUbrNRvLhhv6aR3wwdnjbQo="; + }; sourceRoot = "source/sdk/identity/azure-identity"; postPatch = '' @@ -44,4 +51,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-identity_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Identity client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-administration.nix b/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-administration.nix deleted file mode 100644 index 7de38e79ac54..000000000000 --- a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-administration.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - stdenv, - azure-sdk-for-cpp, - cmake, - ninja, -}: -stdenv.mkDerivation (finalAttrs: { - pname = "azure-sdk-for-cpp-keyvault-administration"; - version = "4.0.0-beta.6-unreleased-2025-03-12"; - outputs = [ - "out" - "dev" - ]; - - inherit (azure-sdk-for-cpp) meta src; - sourceRoot = "source/sdk/keyvault/azure-security-keyvault-administration"; - - postPatch = '' - sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt - ''; - - strictDeps = true; - - nativeBuildInputs = [ - cmake - ninja - ]; - - propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; - - env = { - AZURE_SDK_DISABLE_AUTO_VCPKG = 1; - }; - - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DWARNINGS_AS_ERRORS=OFF" - ]; - - postInstall = '' - moveToOutput "share" $dev - ''; - - doCheck = false; -}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-certificates.nix b/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-certificates.nix deleted file mode 100644 index 85d76b9ab7f1..000000000000 --- a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-certificates.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - stdenv, - azure-sdk-for-cpp, - cmake, - ninja, -}: -stdenv.mkDerivation (finalAttrs: { - pname = "azure-sdk-for-cpp-keyvault-certificates"; - version = "4.3.0-beta.5-unreleased-2025-06-05"; - outputs = [ - "out" - "dev" - ]; - - inherit (azure-sdk-for-cpp) meta src; - sourceRoot = "source/sdk/keyvault/azure-security-keyvault-certificates"; - - postPatch = '' - sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt - ''; - - strictDeps = true; - - nativeBuildInputs = [ - cmake - ninja - ]; - - propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; - - env = { - AZURE_SDK_DISABLE_AUTO_VCPKG = 1; - }; - - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DWARNINGS_AS_ERRORS=OFF" - ]; - - postInstall = '' - moveToOutput "share" $dev - ''; - - doCheck = false; -}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-keys.nix b/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-keys.nix deleted file mode 100644 index 6549e6d9acb2..000000000000 --- a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-keys.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - stdenv, - azure-sdk-for-cpp, - cmake, - ninja, -}: -stdenv.mkDerivation (finalAttrs: { - pname = "azure-sdk-for-cpp-keyvault-keys"; - version = "4.5.0-beta.4-unreleased-2025-04-15"; - outputs = [ - "out" - "dev" - ]; - - inherit (azure-sdk-for-cpp) meta src; - sourceRoot = "source/sdk/keyvault/azure-security-keyvault-keys"; - - postPatch = '' - sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt - ''; - - strictDeps = true; - - nativeBuildInputs = [ - cmake - ninja - ]; - - propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; - - env = { - AZURE_SDK_DISABLE_AUTO_VCPKG = 1; - }; - - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DWARNINGS_AS_ERRORS=OFF" - ]; - - postInstall = '' - moveToOutput "share" $dev - ''; - - doCheck = false; -}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-secrets.nix b/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-secrets.nix deleted file mode 100644 index efd65a0d2933..000000000000 --- a/pkgs/by-name/az/azure-sdk-for-cpp/keyvault-secrets.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - stdenv, - azure-sdk-for-cpp, - cmake, - ninja, -}: -stdenv.mkDerivation (finalAttrs: { - pname = "azure-sdk-for-cpp-keyvault-secrets"; - version = "4.3.0-beta.5-unreleased-2025-04-15"; - outputs = [ - "out" - "dev" - ]; - - inherit (azure-sdk-for-cpp) meta src; - sourceRoot = "source/sdk/keyvault/azure-security-keyvault-secrets"; - - postPatch = '' - sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt - ''; - - strictDeps = true; - - nativeBuildInputs = [ - cmake - ninja - ]; - - propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; - - env = { - AZURE_SDK_DISABLE_AUTO_VCPKG = 1; - }; - - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DWARNINGS_AS_ERRORS=OFF" - ]; - - postInstall = '' - moveToOutput "share" $dev - ''; - - doCheck = false; -}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs-checkpointstore-blob.nix b/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs-checkpointstore-blob.nix index ebf0a481ece5..338d8bcfd68b 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs-checkpointstore-blob.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs-checkpointstore-blob.nix @@ -1,18 +1,25 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-messaging-eventhubs-checkpointstore-blob"; - version = "1.0.0-beta.2-unreleased-2025-03-27"; + version = "1.0.0-beta.1"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-messaging-eventhubs-checkpointstore-blob_1.0.0-beta.1"; + hash = "sha256-487IwzlxnKd09ztf9NQESbp/kZzsT18JXKgMwsG5W/Y="; + }; sourceRoot = "source/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob"; postPatch = '' @@ -46,4 +53,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-messaging-eventhubs-checkpointstore-blob_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Event Hubs Blob Storage Checkpoint Store for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs.nix b/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs.nix index c813b3b37952..a465536028a6 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/messaging-eventhubs.nix @@ -1,18 +1,25 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-messaging-eventhubs"; - version = "1.0.0-beta.11-unreleased-2025-05-21"; + version = "1.0.0-beta.10"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-messaging-eventhubs_1.0.0-beta.10"; + hash = "sha256-qGYfvRFnesI+oIp3jCRo53v66aR2qrcummSNpc5sCOw="; + }; sourceRoot = "source/sdk/eventhubs/azure-messaging-eventhubs"; postPatch = '' @@ -46,4 +53,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-messaging-eventhubs_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Event Hubs Client Package for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/eventhubs/azure-messaging-eventhubs/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/package.nix b/pkgs/by-name/az/azure-sdk-for-cpp/package.nix index 117b489100d6..5073264b04cb 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/package.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/package.nix @@ -1,6 +1,7 @@ { lib, stdenv, + runCommand, fetchFromGitHub, newScope, cmake, @@ -145,100 +146,87 @@ let apple-sdk openssl ; - attestation = callPackage ./attestation.nix { }; core = callPackage ./core.nix { }; core-amqp = callPackage ./core-amqp.nix { }; core-tracing-opentelemetry = callPackage ./core-tracing-opentelemetry.nix { }; + data-tables = callPackage ./data-tables.nix { }; + identity = callPackage ./identity.nix { }; messaging-eventhubs = callPackage ./messaging-eventhubs.nix { }; messaging-eventhubs-checkpointstore-blob = callPackage ./messaging-eventhubs-checkpointstore-blob.nix { }; - identity = callPackage ./identity.nix { }; - keyvault-administration = callPackage ./keyvault-administration.nix { }; - keyvault-certificates = callPackage ./keyvault-certificates.nix { }; - keyvault-keys = callPackage ./keyvault-keys.nix { }; - keyvault-secrets = callPackage ./keyvault-secrets.nix { }; + security-attestation = callPackage ./security-attestation.nix { }; + security-keyvault-administration = callPackage ./security-keyvault-administration.nix { }; + security-keyvault-certificates = callPackage ./security-keyvault-certificates.nix { }; + security-keyvault-keys = callPackage ./security-keyvault-keys.nix { }; + security-keyvault-secrets = callPackage ./security-keyvault-secrets.nix { }; storage-blobs = callPackage ./storage-blobs.nix { }; storage-common = callPackage ./storage-common.nix { }; storage-files-datalake = callPackage ./storage-files-datalake.nix { }; storage-files-shares = callPackage ./storage-files-shares.nix { }; storage-queues = callPackage ./storage-queues.nix { }; - tables = callPackage ./tables.nix { }; } ); in -stdenv.mkDerivation (finalAttrs: { - pname = "azure-sdk-for-cpp"; - version = "1.16.0"; +runCommand "azure-sdk-for-cpp" + { + propagatedBuildInputs = [ + scope.core + scope.core-amqp + scope.core-tracing-opentelemetry + scope.data-tables + scope.identity + scope.messaging-eventhubs + scope.messaging-eventhubs-checkpointstore-blob + scope.security-attestation + scope.security-keyvault-administration + scope.security-keyvault-certificates + scope.security-keyvault-keys + scope.security-keyvault-secrets + scope.storage-blobs + scope.storage-common + scope.storage-files-datalake + scope.storage-files-shares + scope.storage-queues + ]; - src = fetchFromGitHub { - owner = "Azure"; - repo = "azure-sdk-for-cpp"; - tag = "azure-core_1.16.0"; - hash = "sha256-qk1gvPw3bKH5jzpd9eXHGngnBxmsE37KAW226t6hQIA="; - }; + passthru = { + inherit + c-shared-utility + macro-utils-c + umock-c + ; + inherit (scope) + core + core-amqp + core-tracing-opentelemetry + data-tables + identity + messaging-eventhubs + messaging-eventhubs-checkpointstore-blob + security-attestation + security-keyvault-administration + security-keyvault-certificates + security-keyvault-keys + security-keyvault-secrets + storage-blobs + storage-common + storage-files-datalake + storage-files-shares + storage-queues + ; + }; - propagatedBuildInputs = [ - scope.attestation - scope.core - scope.core-amqp - # Currently broken, see comment in ./core-tracing-opentelemetry.nix. - scope.core-tracing-opentelemetry - scope.messaging-eventhubs - scope.messaging-eventhubs-checkpointstore-blob - scope.identity - scope.keyvault-administration - scope.keyvault-certificates - scope.keyvault-keys - scope.keyvault-secrets - scope.storage-blobs - scope.storage-common - scope.storage-files-datalake - scope.storage-files-shares - scope.storage-queues - scope.tables - ]; + meta = { + homepage = "https://azure.github.io/azure-sdk-for-cpp"; + description = "Azure SDK for C++"; + sourceProvenance = [ lib.sourceTypes.fromSource ]; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.tobim ]; + platforms = lib.platforms.all; + }; + } - dontBuild = true; - installPhase = '' - runHook preInstall + '' mkdir $out - runHook postInstall - ''; - - passthru = { - inherit - c-shared-utility - macro-utils-c - umock-c - ; - inherit (scope) - attestation - core - core-amqp - core-tracing-opentelemetry - messaging-eventhubs - messaging-eventhubs-checkpointstore-blob - identity - keyvault-administration - keyvault-certificates - keyvault-keys - keyvault-secrets - storage-blobs - storage-common - storage-files-datalake - storage-files-shares - storage-queues - tables - ; - }; - - meta = { - homepage = "https://azure.github.io/azure-sdk-for-cpp"; - description = "Collection of C++ APIs for interacting with Azure services"; - sourceProvenance = [ lib.sourceTypes.fromSource ]; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.tobim ]; - platforms = lib.platforms.unix; - }; -}) + '' diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/attestation.nix b/pkgs/by-name/az/azure-sdk-for-cpp/security-attestation.nix similarity index 58% rename from pkgs/by-name/az/azure-sdk-for-cpp/attestation.nix rename to pkgs/by-name/az/azure-sdk-for-cpp/security-attestation.nix index 63ecbb60751a..4d42d621cc28 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/attestation.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/security-attestation.nix @@ -1,9 +1,11 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, openssl, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-security-attestation"; @@ -13,7 +15,12 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-security-attestation_1.1.0"; + hash = "sha256-RXCMB7MMIe5x5YgMAqAf306E/1vuRXweAlN5uDHumjA="; + }; sourceRoot = "source/sdk/attestation/azure-security-attestation"; postPatch = '' @@ -45,5 +52,20 @@ stdenv.mkDerivation (finalAttrs: { moveToOutput "share" $dev ''; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-security-attestation_(.*)" + ]; + }; + doCheck = false; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Attestation Package client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/attestation/azure-security-attestation/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-administration.nix b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-administration.nix new file mode 100644 index 000000000000..e6b7e2730300 --- /dev/null +++ b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-administration.nix @@ -0,0 +1,67 @@ +{ + stdenv, + fetchFromGitHub, + azure-sdk-for-cpp, + cmake, + ninja, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "azure-sdk-for-cpp-keyvault-administration"; + version = "4.0.0-beta.5"; + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-security-keyvault-administration_4.0.0-beta.5"; + hash = "sha256-EaiJ2Q6c1VsL+RRF0MvS8jdcHwrKLeTJ0fBlySFt/+w="; + }; + sourceRoot = "source/sdk/keyvault/azure-security-keyvault-administration"; + + postPatch = '' + sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt + ''; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + ninja + ]; + + propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; + + env = { + AZURE_SDK_DISABLE_AUTO_VCPKG = 1; + }; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWARNINGS_AS_ERRORS=OFF" + ]; + + postInstall = '' + moveToOutput "share" $dev + ''; + + doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-security-keyvault-administration_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Security KeyVault Administration client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-administration/CHANGELOG.md"; + } + ); +}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-certificates.nix b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-certificates.nix new file mode 100644 index 000000000000..0baba8d337c3 --- /dev/null +++ b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-certificates.nix @@ -0,0 +1,67 @@ +{ + stdenv, + fetchFromGitHub, + azure-sdk-for-cpp, + cmake, + ninja, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "azure-sdk-for-cpp-security-keyvault-certificates"; + version = "4.3.0-beta.4"; + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-security-keyvault-certificates_4.3.0-beta.4"; + hash = "sha256-6LvqeSqSz5oDxXoR/vD7Pbxc2ksQflFhIrN7DzmMoaE="; + }; + sourceRoot = "source/sdk/keyvault/azure-security-keyvault-certificates"; + + postPatch = '' + sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt + ''; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + ninja + ]; + + propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; + + env = { + AZURE_SDK_DISABLE_AUTO_VCPKG = 1; + }; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWARNINGS_AS_ERRORS=OFF" + ]; + + postInstall = '' + moveToOutput "share" $dev + ''; + + doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-security-keyvault-certificates_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Key Vault Certificates client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-certificates/CHANGELOG.md"; + } + ); +}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-keys.nix b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-keys.nix new file mode 100644 index 000000000000..cab2f946e82b --- /dev/null +++ b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-keys.nix @@ -0,0 +1,67 @@ +{ + stdenv, + azure-sdk-for-cpp, + cmake, + ninja, + fetchFromGitHub, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "azure-sdk-for-cpp-keyvault-keys"; + version = "4.5.0-beta.3"; + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-security-keyvault-keys_4.5.0-beta.3"; + hash = "sha256-NSstk0cpgWBOhi50eiFSHDYiJjel2a4l8xxgfIPKSsU="; + }; + sourceRoot = "source/sdk/keyvault/azure-security-keyvault-keys"; + + postPatch = '' + sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt + ''; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + ninja + ]; + + propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; + + env = { + AZURE_SDK_DISABLE_AUTO_VCPKG = 1; + }; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWARNINGS_AS_ERRORS=OFF" + ]; + + postInstall = '' + moveToOutput "share" $dev + ''; + + doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-keyvault-keys_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Key Vault Key client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/CHANGELOG.md"; + } + ); +}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-secrets.nix b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-secrets.nix new file mode 100644 index 000000000000..939bf84bd923 --- /dev/null +++ b/pkgs/by-name/az/azure-sdk-for-cpp/security-keyvault-secrets.nix @@ -0,0 +1,67 @@ +{ + stdenv, + fetchFromGitHub, + azure-sdk-for-cpp, + cmake, + ninja, + nix-update-script, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "azure-sdk-for-cpp-security-keyvault-secrets"; + version = "4.3.0-beta.4"; + outputs = [ + "out" + "dev" + ]; + + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-security-keyvault-secrets_4.3.0-beta.4"; + hash = "sha256-NSstk0cpgWBOhi50eiFSHDYiJjel2a4l8xxgfIPKSsU="; + }; + sourceRoot = "source/sdk/keyvault/azure-security-keyvault-secrets"; + + postPatch = '' + sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt + ''; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + ninja + ]; + + propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; + + env = { + AZURE_SDK_DISABLE_AUTO_VCPKG = 1; + }; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWARNINGS_AS_ERRORS=OFF" + ]; + + postInstall = '' + moveToOutput "share" $dev + ''; + + doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-security-keyvault-secrets_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Security Keyvault Secrets Package client library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-secrets/CHANGELOG.md"; + } + ); +}) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/storage-blobs.nix b/pkgs/by-name/az/azure-sdk-for-cpp/storage-blobs.nix index 95f232317b89..ec7a43d691fb 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/storage-blobs.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/storage-blobs.nix @@ -1,18 +1,25 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-storage-blobs"; - version = "12.15.0-beta.2-unreleased-2025-06-25"; + version = "12.15.0"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-storage-blobs_12.15.0"; + hash = "sha256-u+zaMoX64GcTKE7QIF5WyENTogLBMTCenoI8hPY7m08="; + }; sourceRoot = "source/sdk/storage/azure-storage-blobs"; postPatch = '' @@ -42,4 +49,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-storage-blobs_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Storage Blobs Client Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-blobs/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/storage-common.nix b/pkgs/by-name/az/azure-sdk-for-cpp/storage-common.nix index 502aa3ea780c..cb30fda1b5eb 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/storage-common.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/storage-common.nix @@ -5,16 +5,23 @@ ninja, openssl, libxml2, + fetchFromGitHub, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-storage-common"; - version = "12.11.0-beta.2-unreleased-2025-06-25"; + version = "12.11.0"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-storage-common_12.11.0"; + hash = "sha256-u+zaMoX64GcTKE7QIF5WyENTogLBMTCenoI8hPY7m08="; + }; sourceRoot = "source/sdk/storage/azure-storage-common"; postPatch = '' @@ -48,4 +55,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-storage-common_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Storage Common Client Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-common/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-datalake.nix b/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-datalake.nix index 033c14117dad..b4d491b630ec 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-datalake.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-datalake.nix @@ -3,16 +3,23 @@ azure-sdk-for-cpp, cmake, ninja, + fetchFromGitHub, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-storage-files-datalake"; - version = "12.13.0-beta.2-unreleased-2025-06-25"; + version = "12.13.0"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-storage-files-datalake_12.13.0"; + hash = "sha256-u+zaMoX64GcTKE7QIF5WyENTogLBMTCenoI8hPY7m08="; + }; sourceRoot = "source/sdk/storage/azure-storage-files-datalake"; postPatch = '' @@ -45,4 +52,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-storage-files-datalake_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Storage Files Data Lake Client Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-files-datalake/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-shares.nix b/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-shares.nix index ff0c0e7bafd5..9194cd45738b 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-shares.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/storage-files-shares.nix @@ -1,18 +1,25 @@ { stdenv, + fetchFromGitHub, azure-sdk-for-cpp, cmake, ninja, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-storage-files-shares"; - version = "12.15.0-beta.2-unreleased-2025-06-25"; + version = "12.15.0"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-storage-files-shares_12.15.0"; + hash = "sha256-u+zaMoX64GcTKE7QIF5WyENTogLBMTCenoI8hPY7m08="; + }; sourceRoot = "source/sdk/storage/azure-storage-files-shares"; postPatch = '' @@ -42,4 +49,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-storage-files-shares_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Storage Files Shares Client Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-files-shares/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/storage-queues.nix b/pkgs/by-name/az/azure-sdk-for-cpp/storage-queues.nix index 5157a68d8918..52ecbbffcfc8 100644 --- a/pkgs/by-name/az/azure-sdk-for-cpp/storage-queues.nix +++ b/pkgs/by-name/az/azure-sdk-for-cpp/storage-queues.nix @@ -3,16 +3,23 @@ azure-sdk-for-cpp, cmake, ninja, + fetchFromGitHub, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "azure-sdk-for-cpp-storage-queues"; - version = "12.15.0-beta.2-unreleased-2025-06-25"; + version = "12.5.0"; outputs = [ "out" "dev" ]; - inherit (azure-sdk-for-cpp) meta src; + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-cpp"; + tag = "azure-storage-queues_12.5.0"; + hash = "sha256-u+zaMoX64GcTKE7QIF5WyENTogLBMTCenoI8hPY7m08="; + }; sourceRoot = "source/sdk/storage/azure-storage-queues"; postPatch = '' @@ -42,4 +49,19 @@ stdenv.mkDerivation (finalAttrs: { ''; doCheck = false; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "azure-storage-queues_(.*)" + ]; + }; + + meta = ( + azure-sdk-for-cpp.meta + // { + description = "Azure Storage Queues Client Library for C++"; + changelog = "https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-queues/CHANGELOG.md"; + } + ); }) diff --git a/pkgs/by-name/az/azure-sdk-for-cpp/tables.nix b/pkgs/by-name/az/azure-sdk-for-cpp/tables.nix deleted file mode 100644 index c80a51346ceb..000000000000 --- a/pkgs/by-name/az/azure-sdk-for-cpp/tables.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ - stdenv, - azure-sdk-for-cpp, - cmake, - ninja, - openssl, - libxml2, -}: -stdenv.mkDerivation (finalAttrs: { - pname = "azure-sdk-for-cpp-tables"; - version = "1.0.0-beta.7-unreleased-2025-04-15"; - outputs = [ - "out" - "dev" - ]; - - inherit (azure-sdk-for-cpp) meta src; - sourceRoot = "source/sdk/tables/azure-data-tables"; - - postPatch = '' - sed -i '/CMAKE_CXX_STANDARD/d' CMakeLists.txt - ''; - - strictDeps = true; - - nativeBuildInputs = [ - cmake - ninja - ]; - - buildInputs = [ - openssl - libxml2 - ]; - propagatedBuildInputs = [ azure-sdk-for-cpp.core ]; - - env = { - AZURE_SDK_DISABLE_AUTO_VCPKG = 1; - }; - - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DWARNINGS_AS_ERRORS=OFF" - ]; - - postInstall = '' - moveToOutput "share" $dev - ''; - - doCheck = false; -})