Skip to content

Commit e94fb6f

Browse files
committed
python37: remove references to openssl-dev
1 parent df304ab commit e94fb6f

File tree

1 file changed

+6
-1
lines changed
  • pkgs/development/interpreters/python/cpython/3.7

1 file changed

+6
-1
lines changed

pkgs/development/interpreters/python/cpython/3.7/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
, self
1515
, CF, configd
1616
, python-setup-hook
17+
, nukeReferences
1718
# For the Python package set
1819
, packageOverrides ? (self: super: {})
1920
}:
@@ -33,7 +34,7 @@ let
3334
sitePackages = "lib/${libPrefix}/site-packages";
3435

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

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

0 commit comments

Comments
 (0)