Skip to content

Commit

Permalink
ags: use sass
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Mar 30, 2024
1 parent f75916f commit 44ab856
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions modules/home/ags/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
types

config.js
style.css
2 changes: 1 addition & 1 deletion modules/home/ags/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import Bar from "./widget/Bar";
App.addIcons(`${App.configDir}/assets`);
App.config({
windows: [Bar(0)],
style: `${App.configDir}/style/main.css`,
style: `${App.configDir}/style.css`,
});
17 changes: 10 additions & 7 deletions modules/home/ags/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ in {
name = "ags-dots";
src = ./.;

nativeBuildInputs = with pkgs; [bun];
nativeBuildInputs = with pkgs; [bun sass];
buildPhase = ''
# Copy assets
cp ${nixos-symbolic} ./assets/nixos-symbolic.svg
# Copy assets
cp ${nixos-symbolic} ./assets/nixos-symbolic.svg
# Build bun files
bun install
bun run build
# Build sass
sass ./style.scss style.css
# Build bun files
bun install
bun run build
'';

installPhase = ''
mkdir -p $out
cp -r assets style config.js $out
cp -r config.js style.css assets $out
'';
};
};
Expand Down
File renamed without changes.

0 comments on commit 44ab856

Please sign in to comment.