Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Forked from expipiplus1/default.nix
Last active June 12, 2016 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/761f4bbb071a5926de4658394121e6ca to your computer and use it in GitHub Desktop.
Save cleverca22/761f4bbb071a5926de4658394121e6ca to your computer and use it in GitHub Desktop.
{ 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