feat(ci/cd): Set up Hydra
Some checks failed
Perform checks / formatting (push) Failing after 46s
Perform checks / nix_flake_check (push) Successful in 47s

This commit is contained in:
Jiří Štefka 2025-01-10 06:34:26 +01:00
parent 72dd5a2eb3
commit 42d1790a7b
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
2 changed files with 68 additions and 0 deletions

23
.hydra/jobsets.nix Normal file
View 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

45
.hydra/spec.json Normal file
View file

@ -0,0 +1,45 @@
{
"zsh.nix": {
"enabled": 1,
"hidden": false,
"description": "ZSH flake",
"nixexprinput": "src",
"nixexprpath": ".hydra/jobsets.nix",
"checkinterval": 300,
"schedulingshares": 100,
"enableemail": 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
}
}
}
}