invoiceplane-template/flake.nix

37 lines
927 B
Nix
Raw Normal View History

2024-04-05 21:43:13 +00:00
{
2024-10-07 13:59:36 +00:00
description = "momo invoiceplane template";
2024-04-05 21:43:13 +00:00
inputs = {
2024-10-07 13:59:36 +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
perSystem = { config, pkgs, final, ... }: {
2024-10-07 13:41:44 +00:00
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
phpactor
];
};
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 14:00:03 +00:00
installPhase = ''
2024-04-05 21:43:13 +00:00
mkdir -p $out
cp *.php $out/
'';
};
};
};
}