Upgraded the Nix install to work with Astal (#587)
* Upgraded the Nix install to work with Astal * Removed pkgs.esbuild Co-authored-by: orangc <orangc@proton.me> * Removed pkgs.bun Co-authored-by: orangc <orangc@proton.me> * Added new dependencies to flake.nix Co-authored-by: orangc <orangc@proton.me> * Update tsconfig.json --------- Co-authored-by: orangc <orangc@proton.me> Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
system,
|
||||
stdenv,
|
||||
lib,
|
||||
writeShellScriptBin,
|
||||
bun,
|
||||
dart-sass,
|
||||
fd,
|
||||
accountsservice,
|
||||
btop,
|
||||
pipewire,
|
||||
bluez,
|
||||
bluez-tools,
|
||||
grimblast,
|
||||
gpu-screen-recorder,
|
||||
networkmanager,
|
||||
brightnessctl,
|
||||
gnome-bluetooth,
|
||||
matugen,
|
||||
swww,
|
||||
python3,
|
||||
libgtop,
|
||||
gobject-introspection,
|
||||
glib,
|
||||
}: let
|
||||
ags = inputs.ags.packages.${system}.default.override {
|
||||
extraPackages = [accountsservice];
|
||||
};
|
||||
|
||||
pname = "hyprpanel";
|
||||
config = stdenv.mkDerivation {
|
||||
inherit pname;
|
||||
version = "latest";
|
||||
src = ../.;
|
||||
|
||||
buildPhase = ''
|
||||
${bun}/bin/bun build ./main.ts \
|
||||
--outfile main.js \
|
||||
--external "resource://*" \
|
||||
--external "gi://*"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r assets $out
|
||||
cp -r scss $out
|
||||
cp -r widget $out
|
||||
cp -r services $out
|
||||
cp -r themes $out
|
||||
cp -r scripts $out
|
||||
cp -f main.js $out/config.js
|
||||
'';
|
||||
};
|
||||
in {
|
||||
desktop = {
|
||||
inherit config;
|
||||
script = writeShellScriptBin pname ''
|
||||
export PATH=$PATH:${lib.makeBinPath [dart-sass fd btop pipewire bluez bluez-tools networkmanager matugen swww grimblast gpu-screen-recorder brightnessctl gnome-bluetooth python3]}
|
||||
export GI_TYPELIB_PATH=${libgtop}/lib/girepository-1.0:${glib}/lib/girepository-1.0:$GI_TYPELIB_PATH
|
||||
${ags}/bin/ags -b hyprpanel -c ${config}/config.js $@
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user