summaryrefslogtreecommitdiff
path: root/examples/gtk4/simple-bar/py/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gtk4/simple-bar/py/flake.nix')
-rw-r--r--examples/gtk4/simple-bar/py/flake.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/examples/gtk4/simple-bar/py/flake.nix b/examples/gtk4/simple-bar/py/flake.nix
new file mode 100644
index 0000000..4002826
--- /dev/null
+++ b/examples/gtk4/simple-bar/py/flake.nix
@@ -0,0 +1,55 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ astal = {
+ url = "github:aylur/astal";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = {
+ self,
+ nixpkgs,
+ astal,
+ }: let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+
+ python = pkgs.python3.withPackages (ps: [
+ ps.pygobject3
+ ]);
+
+ nativeBuildInputs = with pkgs; [
+ meson
+ ninja
+ pkg-config
+ gobject-introspection
+ wrapGAppsHook4
+ blueprint-compiler
+ dart-sass
+ ];
+
+ astalPackages = with astal.packages.${system}; [
+ io
+ astal4
+ battery
+ wireplumber
+ network
+ mpris
+ powerprofiles
+ tray
+ bluetooth
+ ];
+ in {
+ packages.${system}.default = pkgs.stdenv.mkDerivation {
+ name = "simple-bar";
+ src = ./.;
+ inherit nativeBuildInputs;
+ buildInputs = astalPackages ++ [python];
+ };
+
+ devShells.${system}.default = pkgs.mkShell {
+ packages = nativeBuildInputs ++ astalPackages ++ [python];
+ };
+ };
+}