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