nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 dbus,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "bluetui";
11 version = "0.6";
12
13 src = fetchFromGitHub {
14 owner = "pythops";
15 repo = "bluetui";
16 rev = "v${version}";
17 hash = "sha256-JgxzpFpz/fyFZwyxTtAkG9XB5qkxj46lUnZ3mM44dHk=";
18 };
19
20 cargoHash = "sha256-1+hMo5vzgqm9Dpx9ZqRpHfQTRZV2RmqslQNub1+LFnk=";
21
22 nativeBuildInputs = [
23 pkg-config
24 ];
25
26 buildInputs = [
27 dbus
28 ];
29
30 meta = {
31 description = "TUI for managing bluetooth on Linux";
32 homepage = "https://github.com/pythops/bluetui";
33 license = lib.licenses.gpl3Only;
34 maintainers = with lib.maintainers; [ donovanglover ];
35 mainProgram = "bluetui";
36 platforms = lib.platforms.linux;
37 };
38}