2024-04-05 21:43:13 +00:00
|
|
|
{
|
2024-10-07 13:38:43 +00:00
|
|
|
description = "momo invoiceplane template";
|
2024-04-05 21:43:13 +00:00
|
|
|
|
|
|
|
inputs = {
|
2024-10-07 13:38:43 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-04-05 21:43:13 +00:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ self, ... }:
|
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
2024-04-05 21:46:57 +00:00
|
|
|
imports = [
|
|
|
|
inputs.flake-parts.flakeModules.easyOverlay
|
|
|
|
];
|
|
|
|
|
2024-06-16 18:33:50 +00:00
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
2024-04-05 21:57:13 +00:00
|
|
|
|
2024-06-16 18:46:27 +00:00
|
|
|
perSystem = { config, pkgs, final, ... }: {
|
|
|
|
overlayAttrs = {
|
|
|
|
inherit (config.packages) invoiceplane-template;
|
|
|
|
};
|
|
|
|
packages.invoiceplane-template = pkgs.stdenv.mkDerivation {
|
2024-04-05 21:43:13 +00:00
|
|
|
name = "invoiceplane-template";
|
|
|
|
src = ./.;
|
2024-10-07 13:38:43 +00:00
|
|
|
installPhase = ''
|
2024-04-05 21:43:13 +00:00
|
|
|
mkdir -p $out
|
|
|
|
cp *.php $out/
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|