invoiceplane-templates/flake.nix

35 lines
932 B
Nix
Raw Normal View History

2024-04-05 21:43:13 +00:00
{
description = "b12f invoiceplane template";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
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-04-05 21:43:13 +00:00
perSystem = args@{ system, pkgs, lib, config, ... }: let
invoiceplane-template = pkgs.stdenv.mkDerivation {
name = "invoiceplane-template";
src = ./.;
installPhase = ''
mkdir -p $out
cp *.php $out/
'';
};
in {
packages.default = invoiceplane-template;
packages.invoiceplane-template = invoiceplane-template;
2024-04-05 21:46:57 +00:00
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
2024-04-05 21:43:13 +00:00
};
};
}