From d97493fd62be53a2464a6cbec35c0e48ba8e72fd 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 | 22 ++++++++++++++++++++++ 2 files changed, 45 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..775b137 --- /dev/null +++ b/.hydra/spec.json @@ -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 + } + } + } +}