Created
June 12, 2016 12:13
-
-
Save expipiplus1/97da1224a4dea64a861740ec56877b97 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 = writeText "spec.conf" (builtins.toJSON rec { | |
teeth = teethBranch "master"; | |
teeth-ghc8 = teethBranch "ghc8"; | |
}); | |
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