about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/bl/bluez-tools/package.nix
blob: 47d381a321d7465ce5c8ad2d2b6b302a066e433a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, glib
, pkg-config
, readline
, unstableGitUpdater
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "bluez-tools";
  version = "unstable-2020-10-25";

  src = fetchFromGitHub {
    owner = "khvzak";
    repo = "bluez-tools";
    rev = "f65321736475429316f07ee94ec0deac8e46ec4a";
    hash = "sha256-GNtuMqMv/87bp3GX9Lh+CK/VKPluNVeWZRRVOD5NY3Y=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    glib
    readline
  ];

  strictDeps = true;

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    homepage = "https://github.com/khvzak/bluez-tools";
    description = "A set of tools to manage bluetooth devices for linux";
    license = with lib.licenses; [ gpl2Plus ];
    mainProgram = "bt-agent";
    maintainers = with lib.maintainers; [ AndersonTorres ];
    platforms = lib.platforms.linux;
  };
})