libjpeg_original: add optional static builds
This commit is contained in:
parent
c3524a8dd6
commit
65cc76c44a
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, static ? false }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libjpeg-8d";
|
||||
|
@ -7,6 +9,8 @@ stdenv.mkDerivation {
|
|||
url = http://www.ijg.org/files/jpegsrc.v8d.tar.gz;
|
||||
sha256 = "1cz0dy05mgxqdgjf52p54yxpyy95rgl30cnazdrfmw7hfca9n0h0";
|
||||
};
|
||||
|
||||
configureFlags = optional static "--enable-static --disable-shared";
|
||||
|
||||
meta = {
|
||||
homepage = http://www.ijg.org/;
|
||||
|
|
Loading…
Reference in a new issue