forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
27 lines
816 B
Nix
27 lines
816 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
# 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
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "ltunify";
|
|
version = "unstable-20180330";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Lekensteyn";
|
|
repo = "ltunify";
|
|
rev = "f664d1d41d5c4beeac5b81e485c3498f13109db7";
|
|
sha256 = "07sqhih9jmm7vgiwqsjzihd307cj7l096sxjl25p7nwr1q4180wv";
|
|
};
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ];
|
|
|
|
meta = with lib; {
|
|
description = "Tool for working with Logitech Unifying receivers and devices";
|
|
homepage = "https://lekensteyn.nl/logitech-unifying.html";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|