stlink: fix Darwin build

Upstream supports various Unixes, so optimistically set platforms to
`unix` even though we're only going to build it on Linux and Darwin.
This commit is contained in:
Andrew Childs 2019-05-02 01:15:33 +09:00 committed by Bjørn Forsman
parent 051320062e
commit ce5a090075
2 changed files with 5 additions and 2 deletions

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation {
meta = with stdenv.lib; {
description = "In-circuit debug and programming for ST-Link devices";
license = licenses.bsd3;
platforms = platforms.linux;
platforms = platforms.unix;
maintainers = [ maintainers.bjornfor maintainers.rongcuid ];
};
}

View file

@ -13097,7 +13097,10 @@ in
stfl = callPackage ../development/libraries/stfl { };
stlink = callPackage ../development/tools/misc/stlink { };
stlink = callPackage ../development/tools/misc/stlink {
# The Darwin build of stlink explicitly refers to static libusb.
libusb1 = if stdenv.isDarwin then libusb1.override { withStatic = true; } else libusb1;
};
steghide = callPackage ../tools/security/steghide {};