1 # You can specify some extra mirrors and a cache DB via options
2 {lib, stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
4 lib.fetchers.withNormalizedHash { } (
5 # dbs is a list of strings, each is an url for sync
6 # selector is mtn selector, like h:org.example.branch
7 {name ? "mtn-checkout", dbs ? []
8 , outputHash, outputHashAlgo
9 , selector ? "h:" + branch, branch}:
11 stdenvNoCC.mkDerivation {
12 builder = ./builder.sh;
13 nativeBuildInputs = [monotone];
15 inherit outputHash outputHashAlgo;
16 outputHashMode = "recursive";
18 dbs = defaultDBMirrors ++ dbs;
19 inherit branch cacheDB name selector;
21 impureEnvVars = lib.fetchers.proxyImpureEnvVars;