-
-
Save cleverca22/761f4bbb071a5926de4658394121e6ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ nixpkgs, declInput }: | |
let | |
pkgs = import nixpkgs {}; | |
teethBranch = branch: { | |
enabled = 1; | |
hidden = false; | |
description = "teeth ${branch}"; | |
nixexprinput = "src"; | |
nixexprpath = "release.nix"; | |
checkinterval = 60; | |
schedulingshares = 100; | |
enableemail = true; | |
emailoverride = ""; | |
keepnr = 3; | |
inputs = { | |
src = { | |
type = "git"; | |
value = "git://github.com/expipiplus1/teeth.git ${branch}"; | |
emailresponsible = true; | |
}; | |
nixpkgs = { | |
type = "git"; | |
value = "git://github.com/NixOS/nixpkgs.git release-16.03"; | |
emailresponsible = false; | |
}; | |
}; | |
}; | |
genSpec = writeTextFile { | |
name = "spec.conf"; | |
text = builtins.toJSON { | |
teeth = teethBranch "master"; | |
teeth-ghc8 = teethBranch "ghc8"; | |
}; | |
destination = "/spec.conf"; | |
}; | |
printInput = pkgs.runCommand "" {} '' | |
cat <<EOF | |
${builtins.toXML declInput} | |
EOF | |
''; | |
in { | |
jobsets = buildEnv { | |
name = "jobsets"; | |
paths = [ printInput genSpec ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment