46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{
|
|
description = "Stream a headless Hyprland session to a persistent Unix socket";
|
|
|
|
# Matches the nixpkgs this was developed against; consumers can override with
|
|
# inputs.nixpkgs.follows = "nixpkgs" and nothing breaks.
|
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
|
|
|
|
outputs = { self, nixpkgs, ... }: let
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f (import nixpkgs { inherit system; }));
|
|
in {
|
|
packages = forAllSystems (pkgs: rec {
|
|
hhstream = pkgs.callPackage ./nix/package.nix {};
|
|
default = hhstream;
|
|
});
|
|
|
|
nixosModules = rec {
|
|
hyprland-headless-stream = import ./nix/module.nix;
|
|
default = hyprland-headless-stream;
|
|
};
|
|
|
|
# `checks` (unit tests + the VM integration test) is owned by the
|
|
# test-harness workstream -- see docs/CONTRACT.md for the interface.
|
|
|
|
devShells = forAllSystems (pkgs: {
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
python3
|
|
python3.pkgs.pytest
|
|
git
|
|
tmux
|
|
jq
|
|
hyprland
|
|
grim
|
|
ffmpeg
|
|
];
|
|
shellHook = ''
|
|
export PYTHONPATH="$PWD/src''${PYTHONPATH:+:$PYTHONPATH}"
|
|
echo "hhstream dev shell -- python $(python3 --version 2>&1 | cut -d' ' -f2)"
|
|
'';
|
|
};
|
|
});
|
|
|
|
formatter = forAllSystems (pkgs: pkgs.alejandra);
|
|
};
|
|
} |