build: satty on PATH; headless preview checks

This commit is contained in:
elwrcl committed 2026-09-30 14:00:29 +03:00
1 parent 65da1e39a3
commit 3624873f55
2 files changed
+39 -1

No files matched your search

+9 -1
View File
@@ -21,7 +21,10 @@
cargoLock.lockFile = ../Cargo.lock;
nativeBuildInputs = [ pkgs.pkg-config ];
nativeBuildInputs = [
pkgs.makeWrapper
pkgs.pkg-config
];
buildInputs = [
pkgs.libxkbcommon
pkgs.wayland
@@ -30,6 +33,11 @@
# Tests run through `nix flake check` instead.
doCheck = false;
# Clicking a preview opens Satty. --suffix keeps a user's own Satty first.
postInstall = ''
wrapProgram $out/bin/valw --suffix PATH : ${lib.makeBinPath [ pkgs.satty ]}
'';
meta = {
description = "macOS-style screenshots for niri";
mainProgram = "valw";