flake: fix build for multiple target systems

This commit is contained in:
teutat3s 2024-06-16 20:46:27 +02:00
parent eaad78f00e
commit 6cf6f7d88d
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -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;
};
};
};
}