2009-07-07 11:02:09 +01:00
|
|
|
# You can specify some extra mirrors and a cache DB via options
|
2018-01-09 23:38:19 +00:00
|
|
|
{stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
|
2009-07-07 11:02:09 +01: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 18:45:40 +01:00
|
|
|
{name ? "mtn-checkout", dbs ? [], sha256
|
|
|
|
, selector ? "h:" + branch, branch}:
|
2009-07-07 11:02:09 +01:00
|
|
|
|
2018-01-09 23:38:19 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2009-07-07 11:02:09 +01:00
|
|
|
builder = ./builder.sh;
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [monotone];
|
2009-07-07 11:02:09 +01:00
|
|
|
|
2011-08-23 18:45:40 +01:00
|
|
|
outputHashAlgo = "sha256";
|
2009-07-07 11:02:09 +01:00
|
|
|
outputHashMode = "recursive";
|
2011-08-23 18:45:40 +01:00
|
|
|
outputHash = sha256;
|
2009-07-07 11:02:09 +01:00
|
|
|
|
|
|
|
dbs = defaultDBMirrors ++ dbs;
|
2011-08-23 18:45:40 +01:00
|
|
|
inherit branch cacheDB name selector;
|
2009-07-07 11:02:09 +01:00
|
|
|
|
2018-01-09 23:38:19 +00:00
|
|
|
impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars;
|
2016-09-17 20:50:01 +01:00
|
|
|
|
2009-07-07 11:02:09 +01:00
|
|
|
}
|
|
|
|
|