nixpkgs/doc/languages-frameworks/astal.section.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
853 B
Markdown
Raw Normal View History

2025-01-14 07:45:08 +01:00
# Astal {#astal}
Astal is a collection of building blocks for creating custom desktop shells.
## Bundling {#astal-bundling}
Bundling Astal application is done using `ags` tool, you can use it like this:
```nix
ags.bundle {
pname = "hyprpanel";
version = "1.0.0";
2025-04-08 17:36:13 +02:00
src = fetchFromGitHub {
#...
};
2025-01-14 07:45:08 +01:00
# change your entry file (default is `app.ts`)
entry = "app.ts";
dependencies = [
# list here astal modules, that your package depends on
# `astal3`, `astal4` and `astal.io` are automatically included
astal.apps
astal.battery
astal.bluetooth
# you can also list here other runtime dependencies
hypridle
hyprpicker
hyprsunset
];
# GTK 4 support is opt-in
enableGtk4 = true;
2025-04-08 17:36:13 +02:00
meta = {
#...
};
2025-01-14 07:45:08 +01:00
}
```
You can also pass all other arguments that are supported by `stdenv.mkDerivation`.