invoiceplane-templates/flake.nix

32 lines
802 B
Nix
Raw Normal View History

2024-04-05 21:43:13 +00:00
{
description = "momo invoiceplane template";
2024-04-05 21:43:13 +00:00
inputs = {
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
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 = ./.;
installPhase = ''
2024-04-05 21:43:13 +00:00
mkdir -p $out
cp *.php $out/
'';
};
};
};
}