Skip to content

Commit

Permalink
python37: remove references to openssl-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Dec 8, 2018
1 parent df304ab commit e94fb6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/interpreters/python/cpython/3.7/default.nix
Expand Up @@ -14,6 +14,7 @@
, self
, CF, configd
, python-setup-hook
, nukeReferences
# For the Python package set
, packageOverrides ? (self: super: {})
}:
Expand All @@ -33,7 +34,7 @@ let
sitePackages = "lib/${libPrefix}/site-packages";

buildInputs = filter (p: p != null) [
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl ]
zlib bzip2 expat lzma libffi gdbm sqlite readline ncurses openssl nukeReferences ]
++ optionals x11Support [ tcl tk libX11 xproto ]
++ optionals stdenv.isDarwin [ CF configd ];

Expand Down Expand Up @@ -148,6 +149,10 @@ in stdenv.mkDerivation {
sed -i $i -e "s|-I/nix/store/[^ ']*||g" -e "s|-L/nix/store/[^ ']*||g" -e "s|$TMPDIR|/no-such-path|g"
done
# Further get rid of references. https://github.com/NixOS/nixpkgs/issues/51668
find $out/lib/python*/config-*-* -type f -print -exec nuke-refs '{}' +
find $out/lib -name '_sysconfigdata_m*.py*' -print -exec nuke-refs '{}' +
# Determinism: rebuild all bytecode
# We exclude lib2to3 because that's Python 2 code which fails
# We rebuild three times, once for each optimization level
Expand Down

0 comments on commit e94fb6f

Please sign in to comment.