feat(ci/cd): Set up Hydra
This commit is contained in:
parent
72dd5a2eb3
commit
8df8958735
2 changed files with 63 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
|
40
.hydra/spec.json
Normal file
40
.hydra/spec.json
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"enabled": 1,
|
||||
"hidden": false,
|
||||
"description": "ZSH flake",
|
||||
"nixexprinput": "nixexpr",
|
||||
"nixexprpath": ".hydra/jobsets.nix",
|
||||
"checkinterval": 3600,
|
||||
"schedulingshares": 100,
|
||||
"enableemail": false,
|
||||
"emailoverride": "",
|
||||
"keepnr": 3,
|
||||
"type": 0,
|
||||
"inputs": {
|
||||
"nixexpr": {
|
||||
"value": "https://forgejo.stefka.eu/jiriks74/zsh.nix main",
|
||||
"type": "git",
|
||||
"emailresponsible": false
|
||||
},
|
||||
"gitea_repo_name": {
|
||||
"type": "string",
|
||||
"value": "zsh.nix",
|
||||
"emailresponsible": false
|
||||
},
|
||||
"gitea_repo_owner": {
|
||||
"type": "string",
|
||||
"value": "jiriks74",
|
||||
"emailresponsible": false
|
||||
},
|
||||
"gitea_status_repo": {
|
||||
"type": "string",
|
||||
"value": "main",
|
||||
"emailresponsible": false
|
||||
},
|
||||
"gitea_http_url": {
|
||||
"type": "string",
|
||||
"value": "https://forgejo.stefka.eu/",
|
||||
"emailresponsible": false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue