2009-07-07 12:02:09 +02:00
|
|
|
# You can specify some extra mirrors and a cache DB via options
|
2018-01-10 00:38:19 +01:00
|
|
|
{stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
|
2009-07-07 12:02:09 +02:00
|
|
|
# dbs is a list of strings
|
|
|
|
# each is an url for sync
|
|
|
|
|
|
|
|
# selector is mtn selector, like h:org.example.branch
|
|
|
|
#
|
2011-08-23 19:45:40 +02:00
|
|
|
{name ? "mtn-checkout", dbs ? [], sha256
|
|
|
|
, selector ? "h:" + branch, branch}:
|
2009-07-07 12:02:09 +02:00
|
|
|
|
2018-01-10 00:38:19 +01:00
|
|
|
stdenvNoCC.mkDerivation {
|
2009-07-07 12:02:09 +02:00
|
|
|
builder = ./builder.sh;
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [monotone];
|
2009-07-07 12:02:09 +02:00
|
|
|
|
2011-08-23 19:45:40 +02:00
|
|
|
outputHashAlgo = "sha256";
|
2009-07-07 12:02:09 +02:00
|
|
|
outputHashMode = "recursive";
|
2011-08-23 19:45:40 +02:00
|
|
|
outputHash = sha256;
|
2009-07-07 12:02:09 +02:00
|
|
|
|
|
|
|
dbs = defaultDBMirrors ++ dbs;
|
2011-08-23 19:45:40 +02:00
|
|
|
inherit branch cacheDB name selector;
|
2009-07-07 12:02:09 +02:00
|
|
|
|
2018-01-10 00:38:19 +01:00
|
|
|
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
2016-09-17 21:50:01 +02:00
|
|
|
|
2009-07-07 12:02:09 +02:00
|
|
|
}
|
|
|
|
|