{ pkgs, inputs, system, options, runCommand, dart-sass, ... }: let apkgs = inputs.astal.packages.${system}; scss = "${dart-sass}/bin/sass"; theme = import ./theme.nix {inherit options;}; 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/* . echo '${theme}' > theme.scss 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 ]); }