Chore: Add GIO_EXTRA_MODULES to overlay (#992)

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
geri1701
2025-06-14 23:16:13 +02:00
committed by GitHub
parent 6870dc71cd
commit f0ca0fbf64

View File

@@ -1,7 +1,6 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
astal = { astal = {
url = "github:aylur/astal"; url = "github:aylur/astal";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -127,7 +126,6 @@
entry = "app.ts"; entry = "app.ts";
extraPackages = packages system pkgs; extraPackages = packages system pkgs;
}; };
# Make a wrapper package to avoid overlay # Make a wrapper package to avoid overlay
wrapper = pkgs.writeShellScriptBin "hyprpanel" '' wrapper = pkgs.writeShellScriptBin "hyprpanel" ''
@@ -143,12 +141,18 @@
); );
# Define .overlay to expose the package as pkgs.hyprpanel based on the system # Define .overlay to expose the package as pkgs.hyprpanel based on the system
overlay = final: prev: { overlay =
hyprpanel = prev.writeShellScriptBin "hyprpanel" '' final: prev:
let
pkgs = final;
in
{
hyprpanel = pkgs.writeShellScriptBin "hyprpanel" ''
export GIO_EXTRA_MODULES="${pkgs.glib-networking}/lib/gio/modules"
if [ "$#" -eq 0 ]; then if [ "$#" -eq 0 ]; then
exec ${self.packages.${final.stdenv.system}.default}/bin/hyprpanel exec ${self.packages.${final.system}.default}/bin/hyprpanel
else else
exec ${ags.packages.${final.stdenv.system}.io}/bin/astal -i hyprpanel "$@" exec ${ags.packages.${final.system}.io}/bin/astal -i hyprpanel "$@"
fi fi
''; '';
}; };