diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-12-27 17:10:36 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-12-28 09:52:17 -0300 |
commit | 9944335ee24c8641c355fe5574619d18fca534b4 (patch) | |
tree | 4a4f5d9e4040a1d11169a5bcde3c0854b004b65a /pkgs/by-name/bl/bluez-tools | |
parent | 8e8346dfc238e395543ad2b0ac9e63b69459be0b (diff) |
bluez-tools: refactor
- lists in ASCIIbetical ordering - finalAttrs design pattern - set strictDeps to true - set updater - remove nested with - set meta.mainProgram - add AndersonTorres as maintainer
Diffstat (limited to 'pkgs/by-name/bl/bluez-tools')
-rw-r--r-- | pkgs/by-name/bl/bluez-tools/package.nix | 46 |
1 files changed, 32 insertions, 14 deletions
diff --git a/pkgs/by-name/bl/bluez-tools/package.nix b/pkgs/by-name/bl/bluez-tools/package.nix index 271daed016530..47d381a321d74 100644 --- a/pkgs/by-name/bl/bluez-tools/package.nix +++ b/pkgs/by-name/bl/bluez-tools/package.nix @@ -1,26 +1,44 @@ -{ lib, stdenv, autoreconfHook, readline -, fetchFromGitHub, glib, pkg-config }: +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +, glib +, pkg-config +, readline +, unstableGitUpdater +}: -stdenv.mkDerivation rec { - version = "unstable-2020-10-24"; +stdenv.mkDerivation (finalAttrs: { pname = "bluez-tools"; + version = "unstable-2020-10-25"; src = fetchFromGitHub { owner = "khvzak"; repo = "bluez-tools"; rev = "f65321736475429316f07ee94ec0deac8e46ec4a"; - sha256 = "0xk39lz3hm8lcnb5fdbfz4ldbbq8gswg95vilzdwxzrglcr6xnqq"; + hash = "sha256-GNtuMqMv/87bp3GX9Lh+CK/VKPluNVeWZRRVOD5NY3Y="; }; - nativeBuildInputs = [ pkg-config autoreconfHook ]; + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; - buildInputs = [ readline glib ]; + buildInputs = [ + glib + readline + ]; - meta = with lib; { - description = "Command line bluetooth manager for Bluez5"; - license = licenses.gpl2; - maintainers = [ ]; - platforms = platforms.unix; - }; + 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; + }; +}) |