Skip to content

Instantly share code, notes, and snippets.

@albertov
Created September 28, 2018 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertov/90c4f74594e107c2f9bb953efe9cbcf5 to your computer and use it in GitHub Desktop.
Save albertov/90c4f74594e107c2f9bb953efe9cbcf5 to your computer and use it in GitHub Desktop.
Derive([("out","/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6","","")],[("/nix/store/35q426c3k05sf0aq7p1kx2n08b4mrf12-python-setup-hook.sh.drv",["out"]),("/nix/store/4ai41fpcjxxjj8rrchgbmk53bvsv4c0f-Python-3.6.6.tar.xz.drv",["out"]),("/nix/store/4m1nhq1mhc3mz28zzfsjjcn4qd4gvzx9-expat-2.2.6.drv",["dev","out"]),("/nix/store/4skgv7va1vr7qglk6nvn8sjaf6bxidgq-gdbm-1.17.drv",["out"]),("/nix/store/7rf2z9lr99aws2wa1l3map71x1lks524-ncurses-6.1.drv",["dev","out"]),("/nix/store/94cj4id8pz8ai3c9pws0r528f4b2hkvk-libffi-3.2.1.drv",["dev","out"]),("/nix/store/cfd8kwpjak4yxs6jq20an627wh6rg864-zlib-1.2.11.drv",["dev","out"]),("/nix/store/dmjdq9rphb35vv9k9k601h0y0h0riwsw-stdenv-linux.drv",["out"]),("/nix/store/i12c15d9rnz45as76s0nsa0nypl0fl6z-openssl-1.0.2p.drv",["dev","out"]),("/nix/store/n55v46dmpf3gv0kni6l9ypsir8wb18lk-xz-5.2.4.drv",["dev","out"]),("/nix/store/qsqxb7q71kygnh8vzzfab2q60jfz2k3y-sqlite-3.24.0.drv",["dev","out"]),("/nix/store/sirfkhr6fj7sn83h56khfbs38c51s6fp-bzip2-1.0.6.0.1.drv",["dev","out"]),("/nix/store/wjhjhvw1r0kvq7ws2xgmjnyyw7909s55-readline-6.3p08.drv",["dev","out"]),("/nix/store/x55fdqpxr93wwfjbsh2cyp9vv51wjflf-bash-4.4-p23.drv",["out"])],["/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh","/nix/store/zgnbyw6ri9bb9qmipdhz7mynvf3l2627-no-ldconfig.patch"],"x86_64-linux","/nix/store/czx8vkrb9jdgjyz8qfksh10vrnqa723l-bash-4.4-p23/bin/bash",["-e","/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],[("CPPFLAGS","-I/nix/store/dhrcg5drmihd0s4cmavg4dj5x9h628xm-zlib-1.2.11-dev/include -I/nix/store/bwrmbn03hr7a1x9h3k0vai0w2vva7s1g-bzip2-1.0.6.0.1-dev/include -I/nix/store/4ps4yzv9lw772xqkb7sswp0rgmdp3rmn-expat-2.2.6-dev/include -I/nix/store/sr8lgrbrxmmp6f1z0pr1m3krlr6dsazp-xz-5.2.4-dev/include -I/nix/store/8gm4zbvvdbnhbybrhm2cbzqkpkdlrlnq-libffi-3.2.1-dev/include -I/nix/store/qmrraik4xfwm7igq6c1l68salc0v2g23-gdbm-1.17/include -I/nix/store/1f78125jdwigxk7m72p7rxplvhy30abf-sqlite-3.24.0-dev/include -I/nix/store/gxmm5bxq829jx9lsffvbkrqwgcc1bq88-readline-6.3p08-dev/include -I/nix/store/n5a8v7vz4vv054vdigc5bl5qlm4ja8wy-ncurses-6.1-dev/include -I/nix/store/hm94hdjk239fqicmygl3a48zqqqil14j-openssl-1.0.2p-dev/include"),("DETERMINISTIC_BUILD","1"),("LDFLAGS","-L/nix/store/bv6znzsv2qkbcwwa251dx7n5dshz3nr3-zlib-1.2.11/lib -L/nix/store/wwhp4klykgvd7xwl94izc8xxb9idf4wy-bzip2-1.0.6.0.1/lib -L/nix/store/r4xdpciv6qrg3m8l9qas1j5vq6v3pdd7-expat-2.2.6/lib -L/nix/store/6v0w8pn91zqdm2ri7wgrlg3y16gqsbij-xz-5.2.4/lib -L/nix/store/6z0spj65xwl2wf7dbn0fd8jxcka3yx3h-libffi-3.2.1/lib -L/nix/store/qmrraik4xfwm7igq6c1l68salc0v2g23-gdbm-1.17/lib -L/nix/store/92pyrnjf90wix80yzphv0z5fqilg88h5-sqlite-3.24.0/lib -L/nix/store/z2zhmrg6jcrn5iq2779mav0nnq4vm2q6-readline-6.3p08/lib -L/nix/store/s2n99784krxl91mfw3cnn9ylbb5fjvkx-ncurses-6.1/lib -L/nix/store/9kr8r78bwk12050ppywfbhg1vrsd6dp8-openssl-1.0.2p/lib"),("LIBS","-lcrypt -lncurses"),("NIX_LDFLAGS","-lgcc_s"),("PYTHONHASHSEED","0"),("buildInputs","/nix/store/dhrcg5drmihd0s4cmavg4dj5x9h628xm-zlib-1.2.11-dev /nix/store/bwrmbn03hr7a1x9h3k0vai0w2vva7s1g-bzip2-1.0.6.0.1-dev /nix/store/4ps4yzv9lw772xqkb7sswp0rgmdp3rmn-expat-2.2.6-dev /nix/store/sr8lgrbrxmmp6f1z0pr1m3krlr6dsazp-xz-5.2.4-dev /nix/store/8gm4zbvvdbnhbybrhm2cbzqkpkdlrlnq-libffi-3.2.1-dev /nix/store/qmrraik4xfwm7igq6c1l68salc0v2g23-gdbm-1.17 /nix/store/1f78125jdwigxk7m72p7rxplvhy30abf-sqlite-3.24.0-dev /nix/store/gxmm5bxq829jx9lsffvbkrqwgcc1bq88-readline-6.3p08-dev /nix/store/n5a8v7vz4vv054vdigc5bl5qlm4ja8wy-ncurses-6.1-dev /nix/store/hm94hdjk239fqicmygl3a48zqqqil14j-openssl-1.0.2p-dev"),("builder","/nix/store/czx8vkrb9jdgjyz8qfksh10vrnqa723l-bash-4.4-p23/bin/bash"),("configureFlags","--enable-shared --with-threads --without-ensurepip --with-system-expat --with-system-ffi ac_cv_func_lchmod=no"),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget",""),("depsBuildTargetPropagated",""),("depsHostHost",""),("depsHostHostPropagated",""),("depsTargetTarget",""),("depsTargetTargetPropagated",""),("doCheck",""),("doInstallCheck",""),("enableParallelBuilding","1"),("majorVersion","3.6"),("name","python3-3.6.6"),("nativeBuildInputs",""),("out","/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6"),("outputs","out"),("patches","/nix/store/zgnbyw6ri9bb9qmipdhz7mynvf3l2627-no-ldconfig.patch"),("postInstall","# needed for some packages, especially packages that backport functionality\n# to 2.x from 3.x\nfor item in $out/lib/python3.6/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.6/test/__init__.py\n\nln -s \"$out/include/python3.6m\" \"$out/include/python3.6\"\npaxmark E $out/bin/python3.6\n\n# Python on Nix is not manylinux1 compatible. https://github.com/NixOS/nixpkgs/issues/18484\necho \"manylinux1_compatible=False\" >> $out/lib/python3.6/_manylinux.py\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.6/_sysconfigdata*.py $out/lib/python3.6/config-3.6m*/Makefile; do\n sed -i $i -e \"s|-I/nix/store/[^ ']*||g\" -e \"s|-L/nix/store/[^ ']*||g\" -e \"s|$TMPDIR|/no-such-path|g\"\ndone\n# Determinism: rebuild all bytecode\n# We exclude lib2to3 because that's Python 2 code which fails\n# We rebuild three times, once for each optimization level\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"),("postPatch","# Determinism\nsubstituteInPlace \"Lib/py_compile.py\" --replace \"source_stats['mtime']\" \"(1 if 'DETERMINISTIC_BUILD' in os.environ else source_stats['mtime'])\"\n# Determinism. This is done unconditionally\nsubstituteInPlace \"Lib/importlib/_bootstrap_external.py\" --replace \"source_mtime = int(st['mtime'])\" \"source_mtime = 1\"\n"),("preConfigure","for i in /usr /sw /opt /pkg; do\t# improve purity\n substituteInPlace ./setup.py --replace $i /no-such-path\ndone\n\n"),("prePatch",""),("propagatedBuildInputs",""),("propagatedNativeBuildInputs",""),("pythonVersion","3.6"),("setupHook","/nix/store/pg0n1ja8kl50pmnvg3z15xhp28g31rvv-python-setup-hook.sh"),("src","/nix/store/inpsnvhndhhjgb4q5j8iv2m0m3kkg9fk-Python-3.6.6.tar.xz"),("stdenv","/nix/store/i6vl5lwlz5jbkg4r6p340dwmj6fha3xq-stdenv-linux"),("strictDeps",""),("system","x86_64-linux"),("version","3.6.6")])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment