about summary refs log tree commit diff
path: root/third_party/lieer/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/lieer/default.nix')
-rw-r--r--third_party/lieer/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/lieer/default.nix b/third_party/lieer/default.nix
index 6dd4cecd1d3f..0ab40f752faa 100644
--- a/third_party/lieer/default.nix
+++ b/third_party/lieer/default.nix
@@ -26,6 +26,10 @@ let
     export PROJECT_ID='${project}'
     cat ${./api_client.patch} | ${gettext}/bin/envsubst > $out
   '';
+  discoveryPatch = runCommand "discovery_doc.patch" {} ''
+    export DISCOVERY_DOC='${./gmail-api.json}'
+    cat ${./discovery_doc.patch} | ${gettext}/bin/envsubst > $out
+  '';
 in python3Packages.buildPythonApplication rec {
   name = "lieer-${version}";
   version = "1.0";
@@ -39,6 +43,7 @@ in python3Packages.buildPythonApplication rec {
 
   patches = [
     authPatch
+    discoveryPatch
     ./send_scope.patch
   ];