diff options
author | Tomasz Czyż <tomasz.czyz@gmail.com> | 2016-01-08 00:08:43 +0000 |
---|---|---|
committer | Tomasz Czyż <tomasz.czyz@gmail.com> | 2016-01-24 02:26:19 +0000 |
commit | 2bdd64d6dc50579bc75c0ba4162f7f95b101aaf4 (patch) | |
tree | 1239ffc2f38212537907a67303715b783224eb8f /pkgs/applications/misc/solaar | |
parent | 2e62f785d49f0dc386b3b93ceb20965ee9ce39cd (diff) |
solaar: init at 0.9.2
Diffstat (limited to 'pkgs/applications/misc/solaar')
-rw-r--r-- | pkgs/applications/misc/solaar/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/misc/solaar/default.nix b/pkgs/applications/misc/solaar/default.nix new file mode 100644 index 0000000000000..db0798f64cff0 --- /dev/null +++ b/pkgs/applications/misc/solaar/default.nix @@ -0,0 +1,43 @@ +{fetchurl, stdenv, makeWrapper, gtk3, python3Packages}: +let + version = "0.9.2"; +in +stdenv.mkDerivation { + name = "solaar-${version}"; + src = fetchurl { + sha256 = "0954grz2adggfzcj4df4mpr4d7qyl7w8rb4j2s0f9ymawl92i05j"; + url = "https://github.com/pwr/Solaar/archive/${version}.tar.gz"; + }; + + buildInputs = [gtk3 python3Packages.pygobject3 python3Packages.pyudev]; + enableParallelBuilding = true; + installPhase = '' + mkdir -p "$out"; + ''; + 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" + ''; + 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; + maintainers = [maintainers.spinus]; + }; +} |