about summary refs log tree commit diff
path: root/pkgs/tools/admin/azure-cli/python-packages.nix
diff options
context:
space:
mode:
authorPaul Meyer <49727155+katexochen@users.noreply.github.com>2023-12-14 22:17:46 +0100
committerPaul Meyer <49727155+katexochen@users.noreply.github.com>2024-03-02 17:03:59 +0100
commitb34ca295cb18cac7b853883cda21e516070213df (patch)
treeebaeb0ae78c005839caa8d8ac233b5509c9b989f /pkgs/tools/admin/azure-cli/python-packages.nix
parent92682867ac34c886b1e30301ae793e9349dc8250 (diff)
azure-cli: immutable command index
Diffstat (limited to 'pkgs/tools/admin/azure-cli/python-packages.nix')
-rw-r--r--pkgs/tools/admin/azure-cli/python-packages.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/tools/admin/azure-cli/python-packages.nix b/pkgs/tools/admin/azure-cli/python-packages.nix
index 3714c5bec0208..318b5044a8e34 100644
--- a/pkgs/tools/admin/azure-cli/python-packages.nix
+++ b/pkgs/tools/admin/azure-cli/python-packages.nix
@@ -1,4 +1,5 @@
-{ stdenv
+{ lib
+, stdenv
 , python3
 , fetchPypi
 , fetchpatch
@@ -30,6 +31,16 @@ let
 
         sourceRoot = "${src.name}/src/azure-cli-core";
 
+        patches = [
+          # Adding the possibility to configure an immutable configuration dir via `AZURE_IMMUTABLE_DIR`.
+          # This enables us to place configuration files that alter the behavior of the CLI in the Nix store.
+          #
+          # This is a downstream patch without an commit or PR upstream.
+          # There is an issue to discuss possible solutions upstream:
+          # https://github.com/Azure/azure-cli/issues/28093
+          ./0001-optional-immutable-configuration-dir.patch
+        ];
+
         propagatedBuildInputs = with self; [
           argcomplete
           azure-cli-telemetry