libusb1: optionally enable static library

This commit is contained in:
Andrew Childs 2019-05-02 01:14:19 +09:00 committed by Bjørn Forsman
parent e1d89821a0
commit 051320062e

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pkgconfig, systemd ? null, libobjc, IOKit }:
{ stdenv, fetchurl, pkgconfig, systemd ? null, libobjc, IOKit, withStatic ? false }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
name = "libusb-1.0.22";
src = fetchurl {
@ -32,4 +32,8 @@ stdenv.mkDerivation rec {
license = licenses.lgpl21Plus;
maintainers = [ ];
};
}
} // stdenv.lib.optionalAttrs withStatic {
# Carefully added here to avoid a mass rebuild.
# Inline this the next time this package changes.
dontDisableStatic = withStatic;
})