From a715d55d962961e99a2aa6ea5007703560dfad67 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 2 Oct 2022 20:38:02 +0200 Subject: [PATCH] flake: add packages to flake and add hydra build jobs --- flake.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9b29c0f..517ed11 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,15 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; - outputs = { nixpkgs, ... }: { + outputs = { self, nixpkgs, ... }: let + pkgs = import nixpkgs { + overlays = [ + (import ./pkgs/overlay.nix) + ]; + system = "x86_64-linux"; + }; + system = "x86_64-linux"; + in { colmena = { meta = { nixpkgs = import nixpkgs {}; @@ -54,5 +62,20 @@ web-2 = { ... }: {}; }; + + packages.x86_64-linux = { + inherit (pkgs) + anycast_healthchecker + flask-excel + iot-data + pyexcel-xlsx + pyexcel-webio + uptimestatus + wetter; + }; + + hydraJobs = { + inherit (self) packages; + }; }; }