From c3bf15813078a93a9840a05a9b22f1c5652edacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Wed, 9 Jul 2025 12:34:43 +0200 Subject: [PATCH] Note on extracting `mkFlake` to an external library (#451) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit follow-up on https://git.fediversity.eu/Fediversity/Fediversity/pulls/447#issuecomment-8671 Reviewed-on: https://git.fediversity.eu/Fediversity/Fediversity/pulls/451 Reviewed-by: Valentin Gagarin Co-authored-by: Nicolas “Niols” Jeannerod Co-committed-by: Nicolas “Niols” Jeannerod --- mkFlake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkFlake.nix b/mkFlake.nix index c8dc35aa..bbcd6871 100644 --- a/mkFlake.nix +++ b/mkFlake.nix @@ -1,6 +1,13 @@ ## This file contains a tweak of flake-parts's `mkFlake` function to splice in ## sources taken from npins. +## NOTE: Much of the logic in this file feels like it should be not super +## specific to fediversity. Could it make sense to extract the core of this to +## another place it feels closer to in spirit, such as @fricklerhandwerk's +## flake-inputs (which this code already depends on anyway, and which already +## contained two distinct helpers for migrating away from flakes)? cf +## https://git.fediversity.eu/Fediversity/Fediversity/pulls/447#issuecomment-8671 + inputs@{ self, ... }: let