invoiceplane-templates/flake.nix

37 lines
927 B
Nix

{
description = "momo invoiceplane template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { config, pkgs, final, ... }: {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
phpactor
];
};
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
packages.invoiceplane-template = pkgs.stdenv.mkDerivation {
name = "invoiceplane-template";
src = ./.;
installPhase = ''
mkdir -p $out
cp *.php $out/
'';
};
};
};
}