From 0655ff6db35327efb1d9c7f39daf986248a4fb35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Fri, 5 Apr 2024 23:43:13 +0200 Subject: [PATCH] flake: init and rename php files --- .gitignore | 1 + flake.nix | 25 +++++++++++++++++++ ...e_DIN5008B - paid.php => template-paid.php | 0 InvoicePlane_DIN5008B.php => template.php | 0 4 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 flake.nix rename InvoicePlane_DIN5008B - paid.php => template-paid.php (100%) rename InvoicePlane_DIN5008B.php => template.php (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..36a04f2 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + 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; } { + 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; + }; + }; +} diff --git a/InvoicePlane_DIN5008B - paid.php b/template-paid.php similarity index 100% rename from InvoicePlane_DIN5008B - paid.php rename to template-paid.php diff --git a/InvoicePlane_DIN5008B.php b/template.php similarity index 100% rename from InvoicePlane_DIN5008B.php rename to template.php