about summary refs log tree commit diff
path: root/pkgs/by-name/hy/hyprland-monitor-attached/package.nix
blob: 6f505aa7981ef1d0c7d838fddc1394e9d3a70254 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ rustPlatform, fetchFromGitHub, lib }:

rustPlatform.buildRustPackage rec {
  pname = "hyprland-monitor-attached";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "coffebar";
    repo = "hyprland-monitor-attached";
    rev = version;
    hash = "sha256-McenpaoEjQIB709VlLkyVGoUwVoMe7TJPb8Lrh1efw8=";
  };

  cargoHash = "sha256-QH32NYZJcSxTMgHZKqksy2+DLw62G+knJgoj6OGRfQE=";

  meta = with lib; {
    description = "Automatically run a script when a monitor connects (or disconnects) in Hyprland";
    homepage = "https://github.com/coffebar/hyprland-monitor-attached";
    license = licenses.mit;
    maintainers = with maintainers; [ bddvlpr ];
    mainProgram = "hyprland-monitor-attached";
    platforms = platforms.linux;
  };
}