diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2023-08-09 12:51:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 12:51:13 +0200 |
commit | 00f9e1bd85c75c7f5152d6e565deb5f1712a6831 (patch) | |
tree | d3815eecd3fe9ea1412da398714e7c56a0e43ebc | |
parent | 9fba8b32756d0b9edf7c5b216c05e9f87805f064 (diff) | |
parent | 4dabf26caf9eda16d2371f0e8258c96aca4e369b (diff) |
Merge pull request #248117 from kirillrdy/openocd
openocd: fixup pin libgpiod
-rw-r--r-- | pkgs/development/embedded/openocd/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/embedded/openocd/default.nix b/pkgs/development/embedded/openocd/default.nix index 204d5794a304d..954f043a2ade1 100644 --- a/pkgs/development/embedded/openocd/default.nix +++ b/pkgs/development/embedded/openocd/default.nix @@ -25,7 +25,15 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ hidapi jimtcl libftdi1 libjaylink libusb1 ] - ++ lib.optional stdenv.isLinux libgpiod; + ++ + # 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="; + }; + })); configureFlags = [ "--disable-werror" |