forked from momo/invoiceplane-template
flake: fix build for multiple target systems
This commit is contained in:
parent
89eb9a324e
commit
017d7f3c0d
13
flake.nix
13
flake.nix
|
@ -14,8 +14,11 @@
|
||||||
|
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
|
|
||||||
perSystem = args@{ system, pkgs, lib, config, ... }: let
|
perSystem = { config, pkgs, final, ... }: {
|
||||||
invoiceplane-template = pkgs.stdenv.mkDerivation {
|
overlayAttrs = {
|
||||||
|
inherit (config.packages) invoiceplane-template;
|
||||||
|
};
|
||||||
|
packages.invoiceplane-template = pkgs.stdenv.mkDerivation {
|
||||||
name = "invoiceplane-template";
|
name = "invoiceplane-template";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -23,12 +26,6 @@
|
||||||
cp *.php $out/
|
cp *.php $out/
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
|
||||||
packages.default = invoiceplane-template;
|
|
||||||
packages.invoiceplane-template = invoiceplane-template;
|
|
||||||
overlayAttrs = {
|
|
||||||
inherit (config.packages) invoiceplane-template;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue