diff options
author | Andrew Childs <lorne@cons.org.nz> | 2019-05-02 01:14:19 +0900 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2019-05-06 17:06:28 +0200 |
commit | 051320062e5d1288bc989c7f3e39ef903c618104 (patch) | |
tree | 6af5546e450d46388484db48906b4c0b20578713 /pkgs/development/libraries/libusb1 | |
parent | e1d89821a07abc345543d213c4519a7cbb1f3a33 (diff) | |
download | nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.tar nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.tar.gz nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.tar.bz2 nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.tar.lz nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.tar.xz nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.tar.zst nixpkgs-051320062e5d1288bc989c7f3e39ef903c618104.zip |
libusb1: optionally enable static library
Diffstat (limited to 'pkgs/development/libraries/libusb1')
-rw-r--r-- | pkgs/development/libraries/libusb1/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libusb1/default.nix b/pkgs/development/libraries/libusb1/default.nix index ac5c38a34f1..0620163bb32 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; +}) |