From 561ea7543d38cbfc28fa308437596fcc31fefe83 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 21 Oct 2024 14:00:16 -0400 Subject: [PATCH] add hydra job --- flake.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index e0817d7..04662c8 100644 --- a/flake.nix +++ b/flake.nix @@ -34,15 +34,7 @@ pkgs, lib, ... - }: let - heroicons = pkgs.fetchFromGitHub { - owner = "tailwindlabs"; - repo = "heroicons"; - rev = "v2.1.1"; - hash = "sha256-y/kY8HPJmzB2e7ErgkUdQijU7oUhfS3fI093Rsvyvqs="; - sparseCheckout = ["optimized"]; - }; - in { + }: { # Define a consistent package set for development, testing, and # production. _module.args.pkgs = import nixpkgs { @@ -62,6 +54,11 @@ ]; }; + # Add hydraJob for x86_64-linux + hydraJobs = lib.optionalAttrs (system == "x86_64-linux") { + default = self.packages.${system}.default; + }; + # You can build your Elixir application using mixRelease. packages.default = pkgs.beamPackages.mixRelease { pname = "zoeys-computer";