fix(nixos): wrap hyprpanel in a script

This commit is contained in:
Ludovic Ortega
2024-12-23 18:05:54 +01:00
committed by GitHub
parent 97e852cf94
commit fb1f13989c

View File

@@ -73,7 +73,13 @@
# 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 = final: prev: {
hyprpanel = self.packages.${prev.stdenv.system}.default; hyprpanel = prev.writeShellScriptBin "hyprpanel" ''
if [ "$#" -eq 0 ]; then
exec ${self.packages.${final.stdenv.system}.default}/bin/hyprpanel
else
exec ${astal.packages.${final.stdenv.system}.io}/bin/astal -i hyprpanel "$@"
fi
'';
}; };
}; };
} }