git.iko.soy/typeable/nixpkgs
on master help sign in
x264: fix static build
commit394315def1def20193e583342bb1663f6fd47922 authorOrivej Desh <orivej@gmx.fr> dateThu 8 Apr 2021, 05:59 (6 years ago) parent9069104
1 file changed+4−2
pkgs/development/libraries/x264/default.nix+4−2
pkgs/development/libraries/x264/default.nix+4−2
@@ -1,4 +1,6 @@
1−{ stdenv, lib, fetchurl, nasm }:
1+{ stdenv, lib, fetchurl, nasm
2+, enableShared ? !stdenv.hostPlatform.isStatic
3+ }:
24
35stdenv.mkDerivation rec {
46 pname = "x264";
@@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
2830 export AS=$CC
2931 '';
3032
31− configureFlags = [ "--enable-shared" ]
33+ configureFlags = lib.optional enableShared [ "--enable-shared" ]
3234 ++ lib.optional (!stdenv.isi686) "--enable-pic"
3335 ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--cross-prefix=${stdenv.cc.targetPrefix}";
3436