Fix build failure with flakes (#158)
Signed-off-by: Noam Stolero <noamstolero@gmail.com> Co-authored-by: Noam Stolero <noamstolero@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@ Alternatively, if you're using NixOS and/or Home-Manager, you can setup AGS usin
|
|||||||
inherit system;
|
inherit system;
|
||||||
# ...
|
# ...
|
||||||
overlays = [
|
overlays = [
|
||||||
inputs.hyprpanel.overlay.${system}
|
inputs.hyprpanel.overlay
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|||||||
@@ -1,27 +1,27 @@
|
|||||||
{ inputs
|
{
|
||||||
, pkgs
|
inputs,
|
||||||
, system
|
pkgs,
|
||||||
, stdenv
|
system,
|
||||||
, lib
|
stdenv,
|
||||||
, writeShellScriptBin
|
lib,
|
||||||
, bun
|
writeShellScriptBin,
|
||||||
, dart-sass
|
bun,
|
||||||
, fd
|
dart-sass,
|
||||||
, accountsservice
|
fd,
|
||||||
, btop
|
accountsservice,
|
||||||
, pipewire
|
btop,
|
||||||
, bluez
|
pipewire,
|
||||||
, bluez-tools
|
bluez,
|
||||||
, grimblast
|
bluez-tools,
|
||||||
, gpu-screen-recorder
|
grimblast,
|
||||||
, networkmanager
|
gpu-screen-recorder,
|
||||||
, brightnessctl
|
networkmanager,
|
||||||
, matugen
|
brightnessctl,
|
||||||
, swww
|
matugen,
|
||||||
, python3
|
swww,
|
||||||
, gnome
|
python3,
|
||||||
}:
|
gnome,
|
||||||
let
|
}: let
|
||||||
ags = inputs.ags.packages.${system}.default.override {
|
ags = inputs.ags.packages.${system}.default.override {
|
||||||
extraPackages = [accountsservice];
|
extraPackages = [accountsservice];
|
||||||
};
|
};
|
||||||
@@ -30,7 +30,7 @@ let
|
|||||||
config = stdenv.mkDerivation {
|
config = stdenv.mkDerivation {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
version = "latest";
|
version = "latest";
|
||||||
src = ./.;
|
src = ../.;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
${bun}/bin/bun build ./main.ts \
|
${bun}/bin/bun build ./main.ts \
|
||||||
@@ -48,12 +48,11 @@ let
|
|||||||
cp -f main.js $out/config.js
|
cp -f main.js $out/config.js
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
desktop = {
|
desktop = {
|
||||||
inherit config;
|
inherit config;
|
||||||
script = writeShellScriptBin pname ''
|
script = writeShellScriptBin pname ''
|
||||||
export PATH=$PATH:${lib.makeBinPath [dart-sass fd btop pipewire bluez bluez-tools grimblast gpu-screen-recorder brightnessctl gnome.gnome-bluetooth python3]}
|
export PATH=$PATH:${lib.makeBinPath [dart-sass fd btop pipewire bluez bluez-tools networkmanager matugen swww grimblast gpu-screen-recorder brightnessctl gnome.gnome-bluetooth python3]}
|
||||||
${ags}/bin/ags -b hyprpanel -c ${config}/config.js $@
|
${ags}/bin/ags -b hyprpanel -c ${config}/config.js $@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user