Skip to content

Commit 59aa2db

Browse files
authored
libgpiod: 2.2 -> 2.2.1 (#383809)
2 parents 5525603 + b7817f4 commit 59aa2db

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed
Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
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+
}:
311

412
stdenv.mkDerivation rec {
513
pname = "libgpiod";
6-
version = "2.2";
14+
version = "2.2.1";
715

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=";
1120
};
1221

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

33+
passthru.updateScript = gitUpdater {
34+
rev-prefix = "v";
35+
allowedVersions = "^[0-9\\.]+$";
36+
};
37+
2438
meta = with lib; {
2539
description = "C library and tools for interacting with the linux GPIO character device";
2640
longDescription = ''
@@ -29,11 +43,14 @@ stdenv.mkDerivation rec {
2943
data structures behind a straightforward API.
3044
'';
3145
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 = [ ];
3754
platforms = platforms.linux;
3855
};
3956
}

0 commit comments

Comments
 (0)