flake: add overlay

This commit is contained in:
Benjamin Yule Bädorf 2024-04-05 23:46:57 +02:00
parent 0655ff6db3
commit c24aa121de
Signed by: b12f
GPG key ID: 729956E1124F8F26

View file

@ -8,6 +8,10 @@
outputs = inputs@{ self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
perSystem = args@{ system, pkgs, lib, config, ... }: let
invoiceplane-template = pkgs.stdenv.mkDerivation {
name = "invoiceplane-template";
@ -20,6 +24,9 @@
in {
packages.default = invoiceplane-template;
packages.invoiceplane-template = invoiceplane-template;
overlayAttrs = {
inherit (config.packages) invoiceplane-template;
};
};
};
}