From 600f3dc278157e970b91a5ad3c003d5e83549402 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 16 Jun 2024 20:46:27 +0200 Subject: [PATCH] flake: fix build for multiple target systems --- flake.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 63a387a..b0ee00f 100644 --- a/flake.nix +++ b/flake.nix @@ -14,8 +14,11 @@ systems = [ "x86_64-linux" "aarch64-linux" ]; - perSystem = args@{ system, pkgs, lib, config, ... }: let - invoiceplane-template = pkgs.stdenv.mkDerivation { + perSystem = { config, pkgs, final, ... }: { + overlayAttrs = { + inherit (config.packages) invoiceplane-template; + }; + packages.invoiceplane-template = pkgs.stdenv.mkDerivation { name = "invoiceplane-template"; src = ./.; installPhase = '' @@ -23,12 +26,6 @@ cp *.php $out/ ''; }; - in { - packages.default = invoiceplane-template; - packages.invoiceplane-template = invoiceplane-template; - overlayAttrs = { - inherit (config.packages) invoiceplane-template; - }; }; }; }