feat(ci/cd): Set up Hydra
Some checks failed
Perform checks / nix_flake_check (push) Failing after 19s
Perform checks / formatting (push) Failing after 42s

This commit is contained in:
Jiří Štefka 2025-01-10 06:34:26 +01:00
parent 72dd5a2eb3
commit d97493fd62
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
2 changed files with 45 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

22
.hydra/spec.json Normal file
View 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
}
}
}
}