uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
67
pkgs/applications/misc/solaar/default.nix
Normal file
67
pkgs/applications/misc/solaar/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ fetchFromGitHub
|
||||
, lib
|
||||
, gobject-introspection
|
||||
, gtk3
|
||||
, python3Packages
|
||||
, wrapGAppsHook
|
||||
, gdk-pixbuf
|
||||
, libappindicator
|
||||
, librsvg
|
||||
}:
|
||||
|
||||
# Although we copy in the udev rules here, you probably just want to use
|
||||
# logitech-udev-rules instead of adding this to services.udev.packages on NixOS
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "solaar";
|
||||
version = "1.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pwr-Solaar";
|
||||
repo = "Solaar";
|
||||
rev = version;
|
||||
hash = "sha256-6z22MnhUL9Da3G7UDmZsBAi2gHLNpiFEwe+pAtnP91s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook gdk-pixbuf ];
|
||||
buildInputs = [ libappindicator librsvg ];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
evdev
|
||||
gobject-introspection
|
||||
gtk3
|
||||
psutil
|
||||
pygobject3
|
||||
pyudev
|
||||
pyyaml
|
||||
xlib
|
||||
];
|
||||
|
||||
# the -cli symlink is just to maintain compabilility with older versions where
|
||||
# there was a difference between the GUI and CLI versions.
|
||||
postInstall = ''
|
||||
ln -s $out/bin/solaar $out/bin/solaar-cli
|
||||
|
||||
install -Dm444 -t $out/etc/udev/rules.d rules.d/*.rules
|
||||
'';
|
||||
|
||||
# No tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux devices manager for the Logitech Unifying Receiver";
|
||||
longDescription = ''
|
||||
Solaar is a Linux manager for many Logitech keyboards, mice, and trackpads that
|
||||
connect wirelessly to a USB Unifying, Lightspeed, or Nano receiver, connect
|
||||
directly via a USB cable, or connect via Bluetooth. Solaar does not work with
|
||||
peripherals from other companies.
|
||||
|
||||
Solaar can be used as a GUI application or via its command-line interface.
|
||||
|
||||
This tool requires either to be run with root/sudo or alternatively to have the udev rules files installed. On NixOS this can be achieved by setting `hardware.logitech.wireless.enable`.
|
||||
'';
|
||||
homepage = "https://pwr-solaar.github.io/Solaar/";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ spinus ysndr ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue