2018-12-02 11:41:15 +00:00
|
|
|
|
{fetchFromGitHub, stdenv, gtk3, pythonPackages, gobject-introspection}:
|
2018-09-06 13:49:57 +01:00
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2018-08-08 14:23:40 +01:00
|
|
|
|
name = "solaar-unstable-${version}";
|
|
|
|
|
version = "2018-02-02";
|
2016-01-30 00:42:57 +00:00
|
|
|
|
namePrefix = "";
|
2018-08-08 14:23:40 +01:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "pwr";
|
|
|
|
|
repo = "Solaar";
|
|
|
|
|
rev = "59b7285fdfc875119f0c92cfd5f5909e8a8e578c";
|
|
|
|
|
sha256 = "0zy5vmjzdybnjf0mpp8rny11sc43gmm8172svsm9s51h7x0v83y3";
|
2016-01-08 00:08:43 +00:00
|
|
|
|
};
|
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
|
propagatedBuildInputs = [pythonPackages.pygobject3 pythonPackages.pyudev gobject-introspection gtk3];
|
2016-01-08 00:08:43 +00:00
|
|
|
|
postInstall = ''
|
|
|
|
|
wrapProgram "$out/bin/solaar" \
|
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
|
|
|
|
|
wrapProgram "$out/bin/solaar-cli" \
|
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
|
|
|
|
|
'';
|
2016-01-30 00:42:57 +00:00
|
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2016-01-08 00:08:43 +00:00
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "Linux devices manager for the Logitech Unifying Receiver";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Solaar is a Linux device manager for Logitech’s Unifying Receiver
|
|
|
|
|
peripherals. It is able to pair/unpair devices to the receiver, and for
|
|
|
|
|
most devices read battery status.
|
|
|
|
|
|
|
|
|
|
It comes in two flavors, command-line and GUI. Both are able to list the
|
|
|
|
|
devices paired to a Unifying Receiver, show detailed info for each
|
|
|
|
|
device, and also pair/unpair supported devices with the receiver.
|
|
|
|
|
|
|
|
|
|
To be able to use it, make sure you have access to /dev/hidraw* files.
|
|
|
|
|
'';
|
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
homepage = https://pwr.github.io/Solaar/;
|
|
|
|
|
platforms = platforms.linux;
|
2018-08-08 14:23:40 +01:00
|
|
|
|
maintainers = [maintainers.spinus maintainers.ysndr];
|
2016-01-08 00:08:43 +00:00
|
|
|
|
};
|
|
|
|
|
}
|