diff options
Diffstat (limited to 'pkgs/astal/default.nix')
-rw-r--r-- | pkgs/astal/default.nix | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/pkgs/astal/default.nix b/pkgs/astal/default.nix index dc19a19..a7e86fe 100644 --- a/pkgs/astal/default.nix +++ b/pkgs/astal/default.nix @@ -6,36 +6,38 @@ runCommand, dart-sass, ... -}: - -let +}: let apkgs = inputs.astal.packages.${system}; scss = "${dart-sass}/bin/sass"; - theme = import ./theme.nix { inherit options; }; + 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 - ]); -} + 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 + ]); + } |