git.iko.soy/typeable/nixpkgs
on master help sign in
python27: add override to build statically
commit9f7bb1f512ba305ed5b0bf0132dd3f50b158a517 authorMatthew Bauer <mjbauer95@gmail.com> dateMon 3 Jun 2019, 12:22 (7 years ago) parent7531309
2 files changed+5−1
pkgs/development/interpreters/python/cpython/2.7/default.nix+3−1 pkgs/top-level/static.nix+2
pkgs/development/interpreters/python/cpython/2.7/default.nix+3−1
@@ -22,6 +22,7 @@
2222, sourceVersion
2323, sha256
2424, passthruFun
25+, static ? false
2526}:
2627
2728assert x11Support -> tcl != null
@@ -164,7 +165,8 @@ let
164165 ]
165166 # Never even try to use lchmod on linux,
166167 # don't rely on detecting glibc-isms.
167− ++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no";
168+ ++ optional stdenv.hostPlatform.isLinux "ac_cv_func_lchmod=no"
169+ ++ optional static "LDFLAGS=-static";
168170
169171 buildInputs =
170172 optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
pkgs/top-level/static.nix+2
@@ -161,4 +161,6 @@ in {
161161 };
162162 };
163163
164+ python27 = super.python27.override { static = true; };
165+
164166}