2020-04-24 23:36:52 +00:00
|
|
|
# You can specify some extra mirrors and a cache DB via options
|
2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
|
2020-04-24 23:36:52 +00:00
|
|
|
# dbs is a list of strings
|
|
|
|
# each is an url for sync
|
|
|
|
|
|
|
|
# selector is mtn selector, like h:org.example.branch
|
2021-02-05 17:12:51 +00:00
|
|
|
#
|
2020-04-24 23:36:52 +00:00
|
|
|
{name ? "mtn-checkout", dbs ? [], sha256
|
|
|
|
, selector ? "h:" + branch, branch}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
builder = ./builder.sh;
|
|
|
|
nativeBuildInputs = [monotone];
|
|
|
|
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = sha256;
|
|
|
|
|
|
|
|
dbs = defaultDBMirrors ++ dbs;
|
|
|
|
inherit branch cacheDB name selector;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|