mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
61462c94e6
Apparently everyone just copied those variables, instead of creating a library constant for them. Some even removed the comment. -.-
25 lines
632 B
Nix
25 lines
632 B
Nix
# You can specify some extra mirrors and a cache DB via options
|
|
{stdenv, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}:
|
|
# dbs is a list of strings
|
|
# each is an url for sync
|
|
|
|
# selector is mtn selector, like h:org.example.branch
|
|
#
|
|
{name ? "mtn-checkout", dbs ? [], sha256
|
|
, selector ? "h:" + branch, branch}:
|
|
|
|
stdenv.mkDerivation {
|
|
builder = ./builder.sh;
|
|
nativeBuildInputs = [monotone];
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = sha256;
|
|
|
|
dbs = defaultDBMirrors ++ dbs;
|
|
inherit branch cacheDB name selector;
|
|
|
|
impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars;
|
|
|
|
}
|
|
|