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