summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/version-management/dvc
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2023-06-29 15:49:16 -0400
committerBen Darwin <bcdarwin@gmail.com>2023-07-25 10:41:17 -0400
commit59467cc1d78ad85e199f99ad43e23042aaf56e3b (patch)
tree2343969757bee385d8c4666720649d645fde6327 /pkgs/applications/version-management/dvc
parent139d9c0c6a9cf8d6ca74479fd80033bd2c386450 (diff)
dvc: disable telemetry
Diffstat (limited to 'pkgs/applications/version-management/dvc')
-rw-r--r--pkgs/applications/version-management/dvc/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/dvc/default.nix b/pkgs/applications/version-management/dvc/default.nix
index 04845780614d..cf9ba51ffae1 100644
--- a/pkgs/applications/version-management/dvc/default.nix
+++ b/pkgs/applications/version-management/dvc/default.nix
@@ -26,6 +26,7 @@ python3.pkgs.buildPythonApplication rec {
];
postPatch = ''
+ substituteInPlace dvc/analytics.py --replace 'enabled = not os.getenv(DVC_NO_ANALYTICS)' 'enabled = False'
substituteInPlace dvc/daemon.py \
--subst-var-by dvc "$out/bin/dcv"
'';