about summary refs log tree commit diff
path: root/pkgs/by-name/hy
diff options
context:
space:
mode:
authorLuna Simons <luna@bddvlpr.com>2024-03-15 12:31:49 +0100
committerLuna Simons <luna@bddvlpr.com>2024-03-15 12:31:49 +0100
commit49922ef2999d721fb4ad6718e046a1e583b18c95 (patch)
treeb09da9a8078623042fb19412add5def0893956a9 /pkgs/by-name/hy
parent919e6ba6ce3ea8daaf5c7e341ad87a325ef5dd7d (diff)
hyprland-monitor-attached: init at 0.1.5
Diffstat (limited to 'pkgs/by-name/hy')
-rw-r--r--pkgs/by-name/hy/hyprland-monitor-attached/package.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/by-name/hy/hyprland-monitor-attached/package.nix b/pkgs/by-name/hy/hyprland-monitor-attached/package.nix
new file mode 100644
index 0000000000000..6f505aa7981ef
--- /dev/null
+++ b/pkgs/by-name/hy/hyprland-monitor-attached/package.nix
@@ -0,0 +1,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;
+  };
+}