From 3613c8d67802a9827e00bc9213e8ee79413e4f0e Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Mon, 23 Mar 2026 00:55:55 +0100 Subject: WIP: packaging wrappers for arch This change partially implements packaing wrapper scripts into Arch Linux packages. I managed to package the wrapper binary itself successfully, but the current implementation is not usable as it doesn't package the required config files with the wrapper. The issue is that I'd need to iterate the derivation's inputs and filter out the wrapped program, leaving only the config files. I need more time to figure out how to do this. In the meantime I'm leaving the broken version here as a scaffold. P.S. this could be implemented by directly building MTREE files too instead of pkgbuilds. I chose pkgbuilds for simplicity. References: - https://tonyfinn.com/blog/arch-packages-with-nix/ --- default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 3a871d5..a2dc56f 100644 --- a/default.nix +++ b/default.nix @@ -1,9 +1,10 @@ { + self, pkgs ? import { }, wrapper-manager, + system, }: let - recursiveMerge = with pkgs.lib; attrList: @@ -44,11 +45,14 @@ let ./wrappers/gallery-dl ]; }; + wrappers = wm-eval.config.build.packages; + + archpkgs = import ./archpkgs.nix { inherit self pkgs wrappers system; }; in { + inherit wrappers archpkgs; lib = import ./lib { inherit pkgs; }; modules = import ./modules; overlays = import ./overlays; - wrappers = wm-eval.config.build.packages; } // packages -- cgit v1.3.1