Skip to content

Instantly share code, notes, and snippets.

@expipiplus1
Created June 12, 2016 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save expipiplus1/97da1224a4dea64a861740ec56877b97 to your computer and use it in GitHub Desktop.
Save expipiplus1/97da1224a4dea64a861740ec56877b97 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 = 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