about summary refs log tree commit diff
path: root/src/libstore/binary-cache-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-29T14·47+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-29T14·47+0200
commit8e065c6b3e36e4cd113769575c0045b6d42357ef (patch)
tree9c1bf94731cdcb7c6b88bb6338379a7dd75d4475 /src/libstore/binary-cache-store.cc
parentf6aee2f4772b2de1943aaa2c40f8fb6dd3185b92 (diff)
BinaryCacheStore: Make the signing key a parameter
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r--src/libstore/binary-cache-store.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc
index 8b72977d66ba..063d1cce267f 100644
--- a/src/libstore/binary-cache-store.cc
+++ b/src/libstore/binary-cache-store.cc
@@ -15,9 +15,10 @@
 namespace nix {
 
 BinaryCacheStore::BinaryCacheStore(std::shared_ptr<Store> localStore,
-    const Path & secretKeyFile)
+    const StoreParams & params)
     : localStore(localStore)
 {
+    auto secretKeyFile = get(params, "secret-key", "");
     if (secretKeyFile != "")
         secretKey = std::unique_ptr<SecretKey>(new SecretKey(readFile(secretKeyFile)));