libgpiod: 2.2 -> 2.2.1 (#383809)

authored by Nick Cao and committed by GitHub 59aa2dbd 5525603a

+28 -11
+28 -11
pkgs/by-name/li/libgpiod/package.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, autoconf-archive, pkg-config 2 - , enable-tools ? true }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchgit, 5 + gitUpdater, 6 + autoreconfHook, 7 + autoconf-archive, 8 + pkg-config, 9 + enable-tools ? true, 10 + }: 3 11 4 12 stdenv.mkDerivation rec { 5 13 pname = "libgpiod"; 6 - version = "2.2"; 14 + version = "2.2.1"; 7 15 8 - src = fetchurl { 9 - url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-${version}.tar.gz"; 10 - hash = "sha256-rjUynbcCfHQOkMiDuvJ8JjEfBhTmp7EVdxsoGIuZKuw="; 16 + src = fetchgit { 17 + url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git"; 18 + tag = "v${version}"; 19 + hash = "sha256-BVVHyRmgLLUgc3qLHOXiLYaTjsPMntvIP1os9eL8v74="; 11 20 }; 12 21 13 22 nativeBuildInputs = [ ··· 21 30 "--enable-bindings-cxx" 22 31 ]; 23 32 33 + passthru.updateScript = gitUpdater { 34 + rev-prefix = "v"; 35 + allowedVersions = "^[0-9\\.]+$"; 36 + }; 37 + 24 38 meta = with lib; { 25 39 description = "C library and tools for interacting with the linux GPIO character device"; 26 40 longDescription = '' ··· 29 43 data structures behind a straightforward API. 30 44 ''; 31 45 homepage = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/"; 32 - license = with licenses; [ 33 - lgpl21Plus # libgpiod 34 - lgpl3Plus # C++ bindings 35 - ] ++ lib.optional enable-tools gpl2Plus; 36 - maintainers = []; 46 + license = 47 + with licenses; 48 + [ 49 + lgpl21Plus # libgpiod 50 + lgpl3Plus # C++ bindings 51 + ] 52 + ++ lib.optional enable-tools gpl2Plus; 53 + maintainers = [ ]; 37 54 platforms = platforms.linux; 38 55 }; 39 56 }