aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libusb1
diff options
context:
space:
mode:
authorAndrew Childs <lorne@cons.org.nz>2019-05-02 01:14:19 +0900
committerBjørn Forsman <bjorn.forsman@gmail.com>2019-05-06 17:06:28 +0200
commit051320062e5d1288bc989c7f3e39ef903c618104 (patch)
tree6af5546e450d46388484db48906b4c0b20578713 /pkgs/development/libraries/libusb1
parente1d89821a07abc345543d213c4519a7cbb1f3a33 (diff)
libusb1: optionally enable static library
Diffstat (limited to 'pkgs/development/libraries/libusb1')
-rw-r--r--pkgs/development/libraries/libusb1/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix
index ac5c38a34f11..0620163bb320 100644
--- a/pkgs/development/libraries/libusb1/default.nix
+++ b/pkgs/development/libraries/libusb1/default.nix
@@ -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;
+})