forked from momo/invoiceplane-template
35 lines
932 B
Nix
35 lines
932 B
Nix
{
|
|
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; } {
|
|
imports = [
|
|
inputs.flake-parts.flakeModules.easyOverlay
|
|
];
|
|
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
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;
|
|
overlayAttrs = {
|
|
inherit (config.packages) invoiceplane-template;
|
|
};
|
|
};
|
|
};
|
|
}
|