bandwhich: 0.23.0 -> 0.23.1; move to by-name; nixfmt; useFetchCargoVendor (#356934)
[NixPkgs.git] / pkgs / by-name / ca / cargo-vibe / package.nix
blob761e33f5caca9286654ac73edca2a43ecf3d38ea
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6   pkg-config,
7   dbus,
8   udev,
9   openssl,
10   darwin,
12 rustPlatform.buildRustPackage rec {
13   pname = "cargo-vibe";
14   version = "unstable-2022-12-29";
16   src = fetchFromGitHub {
17     owner = "Shadlock0133";
18     repo = pname;
19     rev = "a54d87b080ff7d8b3207f83f8f434b226572f0fe";
20     hash = "sha256-0IwxbMcRH+6WgrzpcU5zfRuKs80XY0mDBjDE9DBnOFk=";
21   };
22   cargoHash = "sha256-mvFp1yPHl+2K2K44G3KAmvPYsalN25kkE3V/2eq2iqs=";
24   nativeBuildInputs = [
25     pkg-config
26   ];
28   buildInputs =
29     [
30       dbus
31       openssl
32     ]
33     ++ lib.optional stdenv.hostPlatform.isLinux udev
34     ++ lib.optionals stdenv.hostPlatform.isDarwin (
35       with darwin.apple_sdk.frameworks;
36       [
37         AppKit
38         IOKit
39         CoreBluetooth
40       ]
41     );
43   meta = with lib; {
44     description = "Cargo x Buttplug.io";
45     mainProgram = "cargo-vibe";
46     homepage = "https://github.com/shadlock0133/cargo-vibe";
47     license = licenses.mit;
48     maintainers = with maintainers; [ _999eagle ];
49   };