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