Unverified Commit 59aa2dbd authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

libgpiod: 2.2 -> 2.2.1 (#383809)

parents 5525603a b7817f47
Loading
Loading
Loading
Loading
+28 −11
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, autoreconfHook, autoconf-archive, pkg-config
, enable-tools ? true }:
{
  lib,
  stdenv,
  fetchgit,
  gitUpdater,
  autoreconfHook,
  autoconf-archive,
  pkg-config,
  enable-tools ? true,
}:

stdenv.mkDerivation rec {
  pname = "libgpiod";
  version = "2.2";
  version = "2.2.1";

  src = fetchurl {
    url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-${version}.tar.gz";
    hash = "sha256-rjUynbcCfHQOkMiDuvJ8JjEfBhTmp7EVdxsoGIuZKuw=";
  src = fetchgit {
    url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git";
    tag = "v${version}";
    hash = "sha256-BVVHyRmgLLUgc3qLHOXiLYaTjsPMntvIP1os9eL8v74=";
  };

  nativeBuildInputs = [
@@ -21,6 +30,11 @@ stdenv.mkDerivation rec {
    "--enable-bindings-cxx"
  ];

  passthru.updateScript = gitUpdater {
    rev-prefix = "v";
    allowedVersions = "^[0-9\\.]+$";
  };

  meta = with lib; {
    description = "C library and tools for interacting with the linux GPIO character device";
    longDescription = ''
@@ -29,10 +43,13 @@ stdenv.mkDerivation rec {
      data structures behind a straightforward API.
    '';
    homepage = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/";
    license = with licenses; [
    license =
      with licenses;
      [
        lgpl21Plus # libgpiod
        lgpl3Plus # C++ bindings
    ] ++ lib.optional enable-tools gpl2Plus;
      ]
      ++ lib.optional enable-tools gpl2Plus;
    maintainers = [ ];
    platforms = platforms.linux;
  };