From ea3b523a37d22e67eaf5019bb8a661a60e82cc31 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 15 Nov 2023 03:37:38 -0500 Subject: flake: use naersk to build cross arch docker images --- flake.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index e4ab295..1738cc2 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,16 @@ inputs.nixpkgs-lib.follows = "nixpkgs"; }; + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + naersk = { + url = "github:nix-community/naersk"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + pre-commit = { url = "github:cachix/pre-commit-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; @@ -25,14 +35,10 @@ }; }; - outputs = { - parts, - pre-commit, - ... - } @ inputs: + outputs = {parts, ...} @ inputs: parts.lib.mkFlake {inherit inputs;} { imports = [ - pre-commit.flakeModule + inputs.pre-commit.flakeModule ./parts/deployment.nix ./parts/dev.nix -- cgit v1.2.3