feat(ci/cd): Set up Hydra
This commit is contained in:
parent
72dd5a2eb3
commit
d97493fd62
2 changed files with 45 additions and 0 deletions
23
.hydra/jobsets.nix
Normal file
23
.hydra/jobsets.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
|
||||
jobs = rec {
|
||||
tarball =
|
||||
pkgs.releaseTools.sourceTarball {
|
||||
name = "hello-tarball";
|
||||
src = <hello>;
|
||||
buildInputs = (with pkgs; [ gettext texLive texinfo ]);
|
||||
};
|
||||
|
||||
build =
|
||||
{ system ? builtins.currentSystem }:
|
||||
|
||||
let pkgs = import <nixpkgs> { inherit system; }; in
|
||||
pkgs.releaseTools.nixBuild {
|
||||
name = "hello";
|
||||
src = jobs.tarball;
|
||||
configureFlags = [ "--disable-silent-rules" ];
|
||||
};
|
||||
};
|
||||
in
|
||||
jobs
|
22
.hydra/spec.json
Normal file
22
.hydra/spec.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"nixpkgs": {
|
||||
"enabled": 1,
|
||||
"hidden": false,
|
||||
"description": "Nixpkgs",
|
||||
"nixexprinput": "nixpkgs",
|
||||
"nixexprpath": "pkgs/top-level/release.nix",
|
||||
"checkinterval": 300,
|
||||
"schedulingshares": 100,
|
||||
"enableemail": false,
|
||||
"enable_dynamic_run_command": false,
|
||||
"emailoverride": "",
|
||||
"keepnr": 3,
|
||||
"inputs": {
|
||||
"nixpkgs": {
|
||||
"type": "git",
|
||||
"value": "git://github.com/NixOS/nixpkgs.git master",
|
||||
"emailresponsible": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue