Fix: Export glib-networking modules (closes #982)
This commit is contained in:
24
flake.nix
24
flake.nix
@@ -99,15 +99,17 @@
|
|||||||
ninja
|
ninja
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
if [ "''${PWD##*/}" = "HyprPanel" ]; then
|
# Exporting glib-networking modules
|
||||||
echo "do you want to initialise stuff in order for tsserver to work? (y/anything_else)"
|
export GIO_EXTRA_MODULES="${pkgs.glib-networking}/lib/gio/modules"
|
||||||
read consent
|
if [ "''${PWD##*/}" = "HyprPanel" ]; then
|
||||||
if [ "$consent" = "y" ]; then
|
echo "do you want to initialise stuff in order for tsserver to work? (y/anything_else)"
|
||||||
ags types -d .; mkdir node_modules; ln -s ${astal.packages.${system}.gjs}/share/astal/gjs ./node_modules/astal
|
read consent
|
||||||
|
if [ "$consent" = "y" ]; then
|
||||||
|
ags types -d .; mkdir node_modules; ln -s ${astal.packages.${system}.gjs}/share/astal/gjs ./node_modules/astal
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "you're not in HyprPanel root dir, no initialisation for you"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "you're not in HyprPanel root dir, no initialisation for you"
|
|
||||||
fi
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -129,10 +131,12 @@
|
|||||||
};
|
};
|
||||||
# Make a wrapper package to avoid overlay
|
# Make a wrapper package to avoid overlay
|
||||||
wrapper = pkgs.writeShellScriptBin "hyprpanel" ''
|
wrapper = pkgs.writeShellScriptBin "hyprpanel" ''
|
||||||
|
# Exporting glib-networking modules
|
||||||
|
export GIO_EXTRA_MODULES="${pkgs.glib-networking}/lib/gio/modules"
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
exec ${self.packages.${pkgs.stdenv.system}.default}/bin/hyprpanel
|
exec ${self.packages.${pkgs.stdenv.system}.default}/bin/hyprpanel
|
||||||
else
|
else
|
||||||
exec ${ags.packages.${pkgs.stdenv.system}.io}/bin/astal -i hyprpanel "$*"
|
exec ${ags.packages.${pkgs.stdenv.system}.io}/bin/astal -i hyprpanel "$@"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
@@ -144,7 +148,7 @@
|
|||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
exec ${self.packages.${final.stdenv.system}.default}/bin/hyprpanel
|
exec ${self.packages.${final.stdenv.system}.default}/bin/hyprpanel
|
||||||
else
|
else
|
||||||
exec ${ags.packages.${final.stdenv.system}.io}/bin/astal -i hyprpanel "$*"
|
exec ${ags.packages.${final.stdenv.system}.io}/bin/astal -i hyprpanel "$@"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user