1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

openocd: use libgpiod_1 instead of duplicated expressions

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2023-11-19 23:33:01 -03:00
parent 12c0a5cab9
commit 20414d1a40

View file

@ -6,7 +6,7 @@
, jimtcl
, libjaylink
, libusb1
, libgpiod
, libgpiod_1
, enableFtdi ? true, libftdi1
@ -27,13 +27,7 @@ stdenv.mkDerivation rec {
buildInputs = [ hidapi jimtcl libftdi1 libjaylink libusb1 ]
++
# tracking issue for v2 api changes https://sourceforge.net/p/openocd/tickets/306/
lib.optional stdenv.isLinux (libgpiod.overrideAttrs (old: rec {
version = "1.6.4";
src = fetchurl {
url = "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-${version}.tar.gz";
sha256 = "sha256-gp1KwmjfB4U2CdZ8/H9HbpqnNssqaKYwvpno+tGXvgo=";
};
}));
lib.optional stdenv.isLinux libgpiod_1;
configureFlags = [
"--disable-werror"