nixpkgs/pkgs/tools/misc/g933-utils/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
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
2021-01-11 10:38:22 +01:00

27 lines
785 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, udev, pkgconfig }:
rustPlatform.buildRustPackage rec {
pname = "g933-utils";
version = "unstable-2019-08-04";
src = fetchFromGitHub {
owner = "ashkitten";
repo = "g933-utils";
rev = "b80cfd59fc41ae5d577c147311376dd7f7882493";
sha256 = "06napzpk3nayzixb4l4fzdiwpgmcrsbc5j9m4qip1yn6dfkin3p0";
};
cargoSha256 = "16xgk4rc36d6lylh2dzv63ryq9s7fli3h2qva1m1p6f0gpasnk7w";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ udev ];
meta = with lib; {
description = "An application to configure Logitech wireless G933/G533 headsets";
homepage = "https://github.com/ashkitten/g933-utils";
license = licenses.mit;
maintainers = with maintainers; [ seqizz ];
platforms = platforms.linux;
};
}