stlink: fix stlink build for macos
Currently stlink build fails on macOS since version 1.7.0 didn't contain
468b1d2daa
commit from upstream. This commit adds dependency on Security framework
required for libusb.
This commit is contained in:
parent
ce34f12203
commit
49dce7182f
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, libusb1
|
||||
, gtk3
|
||||
|
@ -27,6 +28,13 @@ in stdenv.mkDerivation rec {
|
|||
sha256 = "03xypffpbp4imrczbxmq69vgkr7mbp0ps9dk815br5wwlz6vgygl";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/stlink-org/stlink/commit/468b1d2daa853b975c33ab69876c486734f2c6a7.diff";
|
||||
sha256 = "sha256-ueSi/zc7xbOATl0yBtCL4U64IQ/yqu6sMYDOiPl1JBI=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libusb1'
|
||||
] ++ lib.optionals withGUI [
|
||||
|
|
Loading…
Reference in a new issue