Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchgit,
|
|
gitUpdater,
|
|
autoreconfHook,
|
|
autoconf-archive,
|
|
pkg-config,
|
|
enable-tools ? true,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgpiod";
|
|
version = "2.2.2";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git";
|
|
tag = "v${version}";
|
|
hash = "sha256-MePv6LsK+8zCxG8l4vyiiZPSVqv9F4H4KQB0gHjm0YM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf-archive
|
|
pkg-config
|
|
autoreconfHook
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-tools=${if enable-tools then "yes" else "no"}"
|
|
"--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 = ''
|
|
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
|
|
the character device instead. This library encapsulates the ioctl calls and
|
|
data structures behind a straightforward API.
|
|
'';
|
|
homepage = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/";
|
|
license =
|
|
with licenses;
|
|
[
|
|
lgpl21Plus # libgpiod
|
|
lgpl3Plus # C++ bindings
|
|
]
|
|
++ lib.optional enable-tools gpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|