Merge pull request #180191 from oxalica/bump/solaar

solaar: 1.1.3 -> 1.1.4 and clean up

authored by

Guillaume Girol and committed by
GitHub
3915c20b 504ff8ce

+11 -28
+8 -8
pkgs/applications/misc/solaar/default.nix
··· 10 10 }: 11 11 12 12 # Although we copy in the udev rules here, you probably just want to use 13 - # logitech-udev-rules instead of adding this to services.udev.packages on NixOS 13 + # `logitech-udev-rules`, which is an alias to `udev` output of this derivation, 14 + # instead of adding this to `services.udev.packages` on NixOS, 14 15 python3Packages.buildPythonApplication rec { 15 16 pname = "solaar"; 16 - version = "1.1.3"; 17 + version = "1.1.4"; 17 18 18 19 src = fetchFromGitHub { 19 20 owner = "pwr-Solaar"; 20 21 repo = "Solaar"; 21 22 rev = version; 22 - hash = "sha256-6z22MnhUL9Da3G7UDmZsBAi2gHLNpiFEwe+pAtnP91s="; 23 + hash = "sha256-nDfVF7g0M54DRpkH1rnZB8o+nCV4A6b1uKMOMRQ3GbI="; 23 24 }; 24 25 26 + outputs = [ "out" "udev" ]; 27 + 25 28 nativeBuildInputs = [ wrapGAppsHook gdk-pixbuf ]; 26 29 buildInputs = [ libappindicator librsvg ]; 27 30 ··· 41 44 postInstall = '' 42 45 ln -s $out/bin/solaar $out/bin/solaar-cli 43 46 44 - install -Dm444 -t $out/etc/udev/rules.d rules.d/*.rules 47 + install -Dm444 -t $udev/etc/udev/rules.d rules.d-uinput/*.rules 45 48 ''; 46 49 47 - # No tests 48 - doCheck = false; 49 - 50 50 meta = with lib; { 51 51 description = "Linux devices manager for the Logitech Unifying Receiver"; 52 52 longDescription = '' ··· 61 61 ''; 62 62 homepage = "https://pwr-solaar.github.io/Solaar/"; 63 63 license = licenses.gpl2Only; 64 - maintainers = with maintainers; [ spinus ysndr ]; 64 + maintainers = with maintainers; [ spinus ysndr oxalica ]; 65 65 platforms = platforms.linux; 66 66 }; 67 67 }
-19
pkgs/os-specific/linux/logitech-udev-rules/default.nix
··· 1 - { lib, stdenv, solaar }: 2 - 3 - # ltunifi and solaar both provide udev rules but solaar's rules are more 4 - # up-to-date so we simply use that instead of having to maintain our own rules 5 - 6 - stdenv.mkDerivation { 7 - pname = "logitech-udev-rules"; 8 - inherit (solaar) version; 9 - 10 - buildCommand = '' 11 - install -Dm444 -t $out/etc/udev/rules.d ${solaar.src}/rules.d/*.rules 12 - ''; 13 - 14 - meta = with lib; { 15 - description = "udev rules for Logitech devices"; 16 - inherit (solaar.meta) homepage license platforms; 17 - maintainers = with maintainers; [ peterhoeg ]; 18 - }; 19 - }
+3 -1
pkgs/top-level/all-packages.nix
··· 24961 24961 24962 24962 logiops = callPackage ../misc/drivers/logiops { }; 24963 24963 24964 - logitech-udev-rules = callPackage ../os-specific/linux/logitech-udev-rules { }; 24964 + # ltunifi and solaar both provide udev rules but solaar's rules are more 24965 + # up-to-date so we simply use that instead of having to maintain our own rules 24966 + logitech-udev-rules = solaar.udev; 24965 24967 24966 24968 # lohit-fonts.assamese lohit-fonts.bengali lohit-fonts.devanagari lohit-fonts.gujarati lohit-fonts.gurmukhi 24967 24969 # lohit-fonts.kannada lohit-fonts.malayalam lohit-fonts.marathi lohit-fonts.nepali lohit-fonts.odia