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