1 { rustPlatform, fetchFromGitHub, lib }:
3 rustPlatform.buildRustPackage rec {
4 pname = "hyprland-monitor-attached";
7 src = fetchFromGitHub {
9 repo = "hyprland-monitor-attached";
11 hash = "sha256-+bgOOm1B513COcWdUIJ/+GREQH5CR8/RNOcZVkjO2hI=";
14 cargoHash = "sha256-vQfDsP2Tc+Kj95wXIzPTlf6kRdBgdio0QkM9EJRjZjE=";
17 description = "Automatically run a script when a monitor connects (or disconnects) in Hyprland";
18 homepage = "https://github.com/coffebar/hyprland-monitor-attached";
19 license = licenses.mit;
20 maintainers = with maintainers; [ bddvlpr ];
21 mainProgram = "hyprland-monitor-attached";
22 platforms = platforms.linux;