1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

Sort substituters by priority

Fixes #1438.
This commit is contained in:
Eelco Dolstra 2017-07-04 16:34:53 +02:00
parent b7203e853e
commit 42c5774e78
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 11 additions and 0 deletions

View file

@ -812,6 +812,10 @@ std::list<ref<Store>> getDefaultSubstituters()
for (auto uri : settings.extraSubstituters.get())
addStore(uri);
stores.sort([](ref<Store> & a, ref<Store> & b) {
return a->getPriority() < b->getPriority();
});
return stores;
} ());