diff options
author | Peter Hoeg <peter@hoeg.com> | 2019-03-11 13:09:30 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2019-03-19 09:58:56 +0800 |
commit | 86cff5f5d7a8b172cae4d1e461a4e0d7844666d2 (patch) | |
tree | 1b9fd9109595179a42778408f247fcab302297d0 /pkgs/os-specific/linux/logitech-udev-rules/default.nix | |
parent | 4f3e83470b7972d44af2f34f4ea4ecb6b28d07dd (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.nix | 19 |
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 ]; + }; +} |