about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/logitech-udev-rules/default.nix
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2019-03-11 13:09:30 +0800
committerPeter Hoeg <peter@hoeg.com>2019-03-19 09:58:56 +0800
commit86cff5f5d7a8b172cae4d1e461a4e0d7844666d2 (patch)
tree1b9fd9109595179a42778408f247fcab302297d0 /pkgs/os-specific/linux/logitech-udev-rules/default.nix
parent4f3e83470b7972d44af2f34f4ea4ecb6b28d07dd (diff)
logitech-udev-rules: init at 20190130
Diffstat (limited to 'pkgs/os-specific/linux/logitech-udev-rules/default.nix')
-rw-r--r--pkgs/os-specific/linux/logitech-udev-rules/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/logitech-udev-rules/default.nix b/pkgs/os-specific/linux/logitech-udev-rules/default.nix
new file mode 100644
index 0000000000000..c215d94019403
--- /dev/null
+++ b/pkgs/os-specific/linux/logitech-udev-rules/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, solaar }:
+
+# ltunifi and solaar both provide udev rules but solaar's rules are more
+# up-to-date so we simply use that instead of having to maintain our own rules
+
+stdenv.mkDerivation rec {
+  name = "logitech-udev-rules-${version}";
+  inherit (solaar) version;
+
+  buildCommand = ''
+    install -Dm644 -t $out/etc/udev/rules.d ${solaar.src}/rules.d/*.rules
+  '';
+
+  meta = with stdenv.lib; {
+    description = "udev rules for Logitech devices";
+    inherit (solaar.meta) homepage license platforms;
+    maintainers = with maintainers; [ peterhoeg ];
+  };
+}