Merge pull request #72735 from nh2/libjpeg-turbo-static

libjpeg-turbo: Add flag to build static libraries as well
This commit is contained in:
Matthew Bauer 2019-11-04 10:40:38 -05:00 committed by GitHub
commit d20670fbfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, nasm }:
{ stdenv, fetchurl, cmake, nasm, enableStatic ? false }:
stdenv.mkDerivation rec {
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake nasm ];
cmakeFlags = [
"-DENABLE_STATIC=0"
"-DENABLE_STATIC=${if enableStatic then "1" else "0"}"
];
doInstallCheck = true;