Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# You can specify some extra mirrors and a cache DB via options 2{lib, stdenvNoCC, monotone, defaultDBMirrors ? [], cacheDB ? "./mtn-checkout.db"}: 3# dbs is a list of strings 4# each is an url for sync 5 6# selector is mtn selector, like h:org.example.branch 7# 8{name ? "mtn-checkout", dbs ? [], sha256 9, selector ? "h:" + branch, branch}: 10 11stdenvNoCC.mkDerivation { 12 builder = ./builder.sh; 13 nativeBuildInputs = [monotone]; 14 15 outputHashAlgo = "sha256"; 16 outputHashMode = "recursive"; 17 outputHash = sha256; 18 19 dbs = defaultDBMirrors ++ dbs; 20 inherit branch cacheDB name selector; 21 22 impureEnvVars = lib.fetchers.proxyImpureEnvVars; 23 24} 25