From 2cf77fac116a1d20f3fe4ddf1a8634914bb76800 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Fri, 10 Jan 2025 06:34:26 +0100 Subject: [PATCH] feat(ci/cd): Set up Hydra --- .hydra/jobsets.nix | 23 +++++++++++++++++++++++ .hydra/spec.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .hydra/jobsets.nix create mode 100644 .hydra/spec.json diff --git a/.hydra/jobsets.nix b/.hydra/jobsets.nix new file mode 100644 index 0000000..653a573 --- /dev/null +++ b/.hydra/jobsets.nix @@ -0,0 +1,23 @@ +let + pkgs = import {}; + + jobs = rec { + tarball = + pkgs.releaseTools.sourceTarball { + name = "hello-tarball"; + src = ; + buildInputs = (with pkgs; [ gettext texLive texinfo ]); + }; + + build = + { system ? builtins.currentSystem }: + + let pkgs = import { inherit system; }; in + pkgs.releaseTools.nixBuild { + name = "hello"; + src = jobs.tarball; + configureFlags = [ "--disable-silent-rules" ]; + }; + }; +in + jobs diff --git a/.hydra/spec.json b/.hydra/spec.json new file mode 100644 index 0000000..7dead0b --- /dev/null +++ b/.hydra/spec.json @@ -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 + } + } +}