Thanks again!
$ nix path-info --derivation github:NixOS/nixpkgs/f294325aed382b66c7a188482101b0f336d1d7db#python38
/nix/store/5ll8lnqq9fnsm8ys1hxi57aglwxbaml1-python3-3.8.16.drv
That one is a bit bigger:
$ nix derivation show /nix/store/5ll8lnqq9fnsm8ys1hxi57aglwxbaml1-python3-3.8.16.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/5ll8lnqq9fnsm8ys1hxi57aglwxbaml1-python3-3.8.16.drv^*'
{
"/nix/store/5ll8lnqq9fnsm8ys1hxi57aglwxbaml1-python3-3.8.16.drv": {
"args": [
"-e",
"/nix/store/6xg259477c90a229xwmb53pdfkn6ig3g-default-builder.sh"
],
"builder": "/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin/bash",
"env": {
"CPPFLAGS": "-I/nix/store/lf6arf2qj94qs6bkzfl2y75chb7awmx9-zlib-1.2.13-dev/include -I/nix/store/n0hk7kbmiy9glz7jvx6zycfbbcdq735n-bzip2-1.0.8-dev/include -I/nix/store/ikvk5h1wy3sc3vaf4ccych0xrkhp6w1p-expat-2.5.0-dev/include -I/nix/store/b76imzrhblhnaardsvcg0id3arykczlk-xz-5.4.2-dev/include -I/nix/store/5nl887dh4mi80dm1m243bzxng81glc8i-libffi-3.4.4-dev/include -I/nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33/include -I/nix/store/4n9sflsa28gjiz7m858rzky6g9vaq0xr-gdbm-1.23/include -I/nix/store/cvbww4niqc0az7gjmf2x5jdrf03mij6y-sqlite-3.41.2-dev/include -I/nix/store/vpw3zn8idfajnlmk909da34lbvdfqdjv-readline-8.2p1-dev/include -I/nix/store/wj13qyzpxq60ayh4msj00x8qi2m94777-ncurses-6.4-dev/include -I/nix/store/4168nnz1a4l5ic8gaf4h073274p0vwq3-openssl-3.0.8-dev/include",
"LDFLAGS": "-L/nix/store/2ldgh1qis9p4zf8bgsdm7897gw8vv36g-zlib-1.2.13/lib -L/nix/store/by4gv37sharnf370ki60zam5s7qklqqh-bzip2-1.0.8/lib -L/nix/store/si8ypl8afi2s301wwxrrcvirz05x022r-expat-2.5.0/lib -L/nix/store/5533i5qzsxysjf38p1nlza9g9wvh09wk-xz-5.4.2/lib -L/nix/store/zi3wndir89vvbly8fkdwvq9v17vrpw8h-libffi-3.4.4/lib -L/nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33/lib -L/nix/store/4n9sflsa28gjiz7m858rzky6g9vaq0xr-gdbm-1.23/lib -L/nix/store/0ssb3rn06pqn5qjms1ma9qcp10n2jjny-sqlite-3.41.2/lib -L/nix/store/s8axd2sknp45d2jmxkasmq8zxd1mv068-readline-8.2p1/lib -L/nix/store/q5mhssfls6iych80439511vz7539gd95-ncurses-6.4/lib -L/nix/store/40b7dx08rz3ypcvjyrd860dw8g3j518m-openssl-3.0.8/lib",
"LIBS": "-lcrypt",
"NIX_LDFLAGS": "-lgcc_s",
"PYTHONHASHSEED": "0",
"__structuredAttrs": "",
"buildInputs": "/nix/store/g61d598p36nr2i43mdhyvx2ylrrdf08c-bash-5.2-p15-dev /nix/store/lf6arf2qj94qs6bkzfl2y75chb7awmx9-zlib-1.2.13-dev /nix/store/n0hk7kbmiy9glz7jvx6zycfbbcdq735n-bzip2-1.0.8-dev /nix/store/ikvk5h1wy3sc3vaf4ccych0xrkhp6w1p-expat-2.5.0-dev /nix/store/b76imzrhblhnaardsvcg0id3arykczlk-xz-5.4.2-dev /nix/store/5nl887dh4mi80dm1m243bzxng81glc8i-libffi-3.4.4-dev /nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33 /nix/store/4n9sflsa28gjiz7m858rzky6g9vaq0xr-gdbm-1.23 /nix/store/cvbww4niqc0az7gjmf2x5jdrf03mij6y-sqlite-3.41.2-dev /nix/store/vpw3zn8idfajnlmk909da34lbvdfqdjv-readline-8.2p1-dev /nix/store/wj13qyzpxq60ayh4msj00x8qi2m94777-ncurses-6.4-dev /nix/store/4168nnz1a4l5ic8gaf4h073274p0vwq3-openssl-3.0.8-dev",
"builder": "/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin/bash",
"cmakeFlags": "",
"configureFlags": "--without-ensurepip --with-system-expat --with-system-ffi --enable-shared --with-lto --enable-loadable-sqlite-extensions --with-openssl=/nix/store/4168nnz1a4l5ic8gaf4h073274p0vwq3-openssl-3.0.8-dev CFLAGS=-I/nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33/include LIBS=-L/nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33/lib ac_cv_func_lchmod=no",
"debug": "/nix/store/679l7jrx19366l738wa6nf9fgi2503hw-python3-3.8.16-debug",
"depsBuildBuild": "",
"depsBuildBuildPropagated": "",
"depsBuildTarget": "",
"depsBuildTargetPropagated": "",
"depsHostHost": "",
"depsHostHostPropagated": "",
"depsTargetTarget": "",
"depsTargetTargetPropagated": "",
"disallowedReferences": "/nix/store/4168nnz1a4l5ic8gaf4h073274p0vwq3-openssl-3.0.8-dev",
"doCheck": "",
"doInstallCheck": "",
"enableParallelBuilding": "1",
"enableParallelChecking": "1",
"enableParallelInstalling": "1",
"mesonFlags": "",
"name": "python3-3.8.16",
"nativeBuildInputs": "/nix/store/dn7hlwfmv3z394s86pvfpj2444x3bvjk-autoreconf-hook /nix/store/liawqp5fjqna6gnrpp8rs3x1gfb5fxjj-pkg-config-wrapper-0.29.2 /nix/store/p17jl9j9iwg9750f5da3q1bf813whrhb-autoconf-archive-2022.09.03 /nix/store/5izwq1i5q8bwacip6ipnkmqh34p67ysv-nuke-references /nix/store/adgdkjgx1n2r7a8mjgp4jz7g48na9pq0-separate-debug-info.sh",
"out": "/nix/store/y9niqy128f5zdspsi9bvrgw7lbw7k4yi-python3-3.8.16",
"outputs": "out debug",
"patches": "/nix/store/p4qar37zn2892m83b2lkp8fw5dsjkzxy-no-ldconfig.patch /nix/store/r112dk8w7zvdjipki58ch00m825li7fq-virtualenv-permissions.patch /nix/store/lpfs02z2i2hamz9f50p4bz6v0fs0600j-mimetypes.patch /nix/store/dkb2rjyj7lwmvsn4zzwx85kx8r61nk9w-darwin-libutil.patch /nix/store/cv1ynpzvjjr0s72jkbblbzz3ymr87lpi-0001-On-all-posix-systems-not-just-Darwin-set-LDSHARED-if.patch /nix/store/57kclla9vza2n87xgwg1ap54d20cz6lb-fix-finding-headers-when-cross-compiling.patch",
"pname": "python3",
"postFixup": "cat << \"EOF\" >> \"$out/nix-support/setup-hook\"\nsysconfigdataHook() {\n if [ \"$1\" = '/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9' ]; then\n export _PYTHON_HOST_PLATFORM='linux-x86_64'\n export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__linux_x86_64-linux-gnu'\n fi\n}\n\naddEnvHooks \"$hostOffset\" sysconfigdataHook\n\nEOF\n",
"postInstall": "# needed for some packages, especially packages that backport functionality\n# to 2.x from 3.x\nfor item in $out/lib/python3.8/test/*; do\n if [[ \"$item\" != */test_support.py*\n && \"$item\" != */test/support\n && \"$item\" != */test/libregrtest\n && \"$item\" != */test/regrtest.py* ]]; then\n rm -rf \"$item\"\n else\n echo $item\n fi\ndone\ntouch $out/lib/python3.8/test/__init__.py\n\nln -s \"$out/include/python3.8m\" \"$out/include/python3.8\"\n\n# Determinism: Windows installers were not deterministic.\n# We're also not interested in building Windows installers.\nfind \"$out\" -name 'wininst*.exe' | xargs -r rm -f\n\n# Use Python3 as default python\nln -s \"$out/bin/idle3\" \"$out/bin/idle\"\nln -s \"$out/bin/pydoc3\" \"$out/bin/pydoc\"\nln -s \"$out/bin/python3\" \"$out/bin/python\"\nln -s \"$out/bin/python3-config\" \"$out/bin/python-config\"\nln -s \"$out/lib/pkgconfig/python3.pc\" \"$out/lib/pkgconfig/python.pc\"\n\n# Get rid of retained dependencies on -dev packages, and remove\n# some $TMPDIR references to improve binary reproducibility.\n# Note that the .pyc file of _sysconfigdata.py should be regenerated!\nfor i in $out/lib/python3.8/_sysconfigdata*.py $out/lib/python3.8/config-38*/Makefile; do\n sed -i $i -e \"s|$TMPDIR|/no-such-path|g\"\ndone\n\n# Further get rid of references. https://github.com/NixOS/nixpkgs/issues/51668\nfind $out/lib/python*/config-* -type f -print -exec nuke-refs -e /1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 -e /nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33 '{}' +\nfind $out/lib -name '_sysconfigdata*.py*' -print -exec nuke-refs -e /1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 -e /nix/store/wy0incigsdz3nai26lxmn9ibchnb0qd6-libxcrypt-4.4.33 '{}' +\n\n# Make the sysconfigdata module accessible on PYTHONPATH\n# This allows build Python to import host Python's sysconfigdata\nmkdir -p \"$out/lib/python3.8/site-packages\"\nln -s \"$out/lib/python3.8/\"_sysconfigdata*.py \"$out/lib/python3.8/site-packages/\"\n# Include a sitecustomize.py file\ncp /nix/store/kclys2xfrg0zjmpa37gyp33nyg1c7j0q-sitecustomize.py $out/lib/python3.8/site-packages/sitecustomize.py\n\n# Determinism: deterministic bytecode\n# First we delete all old bytecode.\nfind $out -type d -name __pycache__ -print0 | xargs -0 -I {} rm -rf \"{}\"\n# Python 3.7 implements PEP 552, introducing support for deterministic bytecode.\n# compileall uses the therein introduced checked-hash method by default when\n# `SOURCE_DATE_EPOCH` is set.\n# We exclude lib2to3 because that's Python 2 code which fails\n# We build 3 levels of optimized bytecode. Note the default level, without optimizations,\n# is not reproducible yet. https://bugs.python.org/issue29708\n# Not creating bytecode will result in a large performance loss however, so we do build it.\nfind $out -name \"*.py\" | $out/bin/python -m compileall -q -f -x \"lib2to3\" -i -\nfind $out -name \"*.py\" | $out/bin/python -O -m compileall -q -f -x \"lib2to3\" -i -\nfind $out -name \"*.py\" | $out/bin/python -OO -m compileall -q -f -x \"lib2to3\" -i -\n# *strip* shebang from libpython gdb script - it should be dual-syntax and\n# interpretable by whatever python the gdb in question is using, which may\n# not even match the major version of this python. doing this after the\n# bytecode compilations for the same reason - we don't want bytecode generated.\nmkdir -p $out/share/gdb\nsed '/^#!/d' Tools/gdb/libpython.py > $out/share/gdb/libpython.py\n",
"postPatch": "substituteInPlace Lib/subprocess.py \\\n --replace \"'/bin/sh'\" \"'/nix/store/zlf0f88vj30sc7567b80l52d19pbdmy2-bash-5.2-p15/bin/sh'\"\nsubstituteInPlace Lib/mimetypes.py \\\n --replace \"@mime-types@\" \"/nix/store/x178gr6fnfcm1s53vbksi6wd3awqdh8h-mailcap-2.1.53\"\n",
"preConfigure": "for i in /usr /sw /opt /pkg; do\t# improve purity\n substituteInPlace ./setup.py --replace $i /no-such-path\ndone\nexport CFLAGS_NODIST=\"-fno-semantic-interposition\"\n",
"preFixup": "",
"prePatch": "",
"propagatedBuildInputs": "",
"propagatedNativeBuildInputs": "",
"separateDebugInfo": "1",
"setupHook": "/nix/store/19xcg9vnkkr9hwd8iklbfyx8hp7j7xn5-python-setup-hook.sh",
"src": "/nix/store/scfxsjypkhlahmnac2d1c898v3ddrlpb-Python-3.8.16.tar.xz",
"stdenv": "/nix/store/5s1yg5l36wzgy1dj0vv1ibarc4g7vrdr-stdenv-linux",
"strictDeps": "",
"system": "x86_64-linux",
"version": "3.8.16"
},
"inputDrvs": {
"/nix/store/2alni3s6zjs6ipzbafqdbdgm1zkaxfhd-autoreconf-hook.drv": [
"out"
],
"/nix/store/5l92g2q5ymaii3pz7s36y88madg6rs54-pkg-config-wrapper-0.29.2.drv": [
"out"
],
"/nix/store/5nibgkfqc6gain0hzr491djksg3kwf8z-libffi-3.4.4.drv": [
"dev",
"out"
],
"/nix/store/758czggsn7xdx6wm1fh15zr64cd239jp-bzip2-1.0.8.drv": [
"dev",
"out"
],
"/nix/store/7jcqqqsd2ma84l46wzgd4pxbrkrz91jc-openssl-3.0.8.drv": [
"dev",
"out"
],
"/nix/store/90a4zrl8f3479v69vb273m566gaiyfyc-autoconf-archive-2022.09.03.drv": [
"out"
],
"/nix/store/9bn3xnnyrpar63309s1bqq9480gf4d99-ncurses-6.4.drv": [
"dev",
"out"
],
"/nix/store/afgczn0y3yxpkqyhwg7al9q4gfqx7a99-readline-8.2p1.drv": [
"dev",
"out"
],
"/nix/store/anbnl4ws68801p53c0k3nhmsqkfb2m4b-sqlite-3.41.2.drv": [
"dev",
"out"
],
"/nix/store/b54w2jbb3ywk2rbf06c8qk3q6irnzr9j-expat-2.5.0.drv": [
"dev",
"out"
],
"/nix/store/fx363827fjqpcmb4zaikvni371mg26wb-nuke-references.drv": [
"out"
],
"/nix/store/i8srfn1mlsc88ki6yfv8vvs5yg00n76z-python-setup-hook.sh.drv": [
"out"
],
"/nix/store/lk7ib890n5yxrf3pnccf63bg0bp2i922-Python-3.8.16.tar.xz.drv": [
"out"
],
"/nix/store/m1yql6a0w06r5fiq0g6p32nm4wvllfwj-libxcrypt-4.4.33.drv": [
"out"
],
"/nix/store/pjl6y0k7vbi72y9rkn0bpcxwfws549m8-mailcap-2.1.53.drv": [
"out"
],
"/nix/store/q0ml0xhn7vlranc9h2gh7kwy357jmr4h-bash-5.2-p15.drv": [
"dev",
"out"
],
"/nix/store/w184rg11rf6ridzdxhq6w9jm70706wf0-stdenv-linux.drv": [
"out"
],
"/nix/store/w7nn0bz0hfd1g09pys1pkhilyvk2wzrh-xz-5.4.2.drv": [
"dev",
"out"
],
"/nix/store/whrmqngan2zssd4cw9pfzrw686v13cc9-zlib-1.2.13.drv": [
"dev",
"out"
],
"/nix/store/z127pqfpa38y94x6j0hmnmbkww4vafa3-gdbm-1.23.drv": [
"out"
]
},
"inputSrcs": [
"/nix/store/57kclla9vza2n87xgwg1ap54d20cz6lb-fix-finding-headers-when-cross-compiling.patch",
"/nix/store/6xg259477c90a229xwmb53pdfkn6ig3g-default-builder.sh",
"/nix/store/adgdkjgx1n2r7a8mjgp4jz7g48na9pq0-separate-debug-info.sh",
"/nix/store/cv1ynpzvjjr0s72jkbblbzz3ymr87lpi-0001-On-all-posix-systems-not-just-Darwin-set-LDSHARED-if.patch",
"/nix/store/dkb2rjyj7lwmvsn4zzwx85kx8r61nk9w-darwin-libutil.patch",
"/nix/store/kclys2xfrg0zjmpa37gyp33nyg1c7j0q-sitecustomize.py",
"/nix/store/lpfs02z2i2hamz9f50p4bz6v0fs0600j-mimetypes.patch",
"/nix/store/p4qar37zn2892m83b2lkp8fw5dsjkzxy-no-ldconfig.patch",
"/nix/store/r112dk8w7zvdjipki58ch00m825li7fq-virtualenv-permissions.patch"
],
"name": "python3-3.8.16",
"outputs": {
"debug": {
"path": "/nix/store/679l7jrx19366l738wa6nf9fgi2503hw-python3-3.8.16-debug"
},
"out": {
"path": "/nix/store/y9niqy128f5zdspsi9bvrgw7lbw7k4yi-python3-3.8.16"
}
},
"system": "x86_64-linux"
}
}
Are these:
"/nix/store/i8srfn1mlsc88ki6yfv8vvs5yg00n76z-python-setup-hook.sh.drv": [
"out"
],
"/nix/store/lk7ib890n5yxrf3pnccf63bg0bp2i922-Python-3.8.16.tar.xz.drv": [
"out"
],
the equivalent in this version, perhaps?