{ pkgs, inputs, system, runCommand, dart-sass, ... }: let apkgs = inputs.astal.packages.${system}; scss = "${dart-sass}/bin/sass"; in inputs.astal.lib.mkLuaPackage { pkgs = pkgs // { # use luajit lua = pkgs.luajit; }; src = runCommand "src" {} '' mkdir -p $out cp -r ${./src}/{*.lua,widget} $out/ cp -r ${./src}/style/* . cat theme.scss style.scss widget/* > main.scss ${scss} main.scss $out/main.css ''; name = "astal"; extraPackages = (with apkgs; [ battery hyprland mpris network notifd tray wireplumber ]) ++ (with pkgs; [ networkmanager ]); }