feat(ci/cd): Set up Hydra
This commit is contained in:
parent
72dd5a2eb3
commit
2cf77fac11
2 changed files with 67 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
|
44
.hydra/spec.json
Normal file
44
.hydra/spec.json
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"enabled": 1,
|
||||||
|
"hidden": false,
|
||||||
|
"description": "ZSH flake",
|
||||||
|
"nixexprinput": "src",
|
||||||
|
"nixexprpath": ".hydra/jobsets.nix",
|
||||||
|
"checkinterval": 300,
|
||||||
|
"schedulingshares": 100,
|
||||||
|
"enableemail": false,
|
||||||
|
"enable_dynamic_run_command": false,
|
||||||
|
"emailoverride": "",
|
||||||
|
"keepnr": 3,
|
||||||
|
"inputs": {
|
||||||
|
"src": {
|
||||||
|
"type": "git",
|
||||||
|
"value": "git://forgejo.stefka.eu/jiriks74/zsh.nix.git main",
|
||||||
|
"emailresponsible": false
|
||||||
|
},
|
||||||
|
"nixpkgs": { "type": "git",
|
||||||
|
"value": "git://github.com/NixOS/nixpkgs.git release-16.03",
|
||||||
|
"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