···4646 nativeBuildInputs = [ git ];4747 };48484949+ /*5050+ Upstream isn't interested in packaging this as a library5151+ (or accepting all of the patches we need to do so).5252+ This creates one without disturbing upstream too much.5353+ */4954 oildev = python27Packages.buildPythonPackage rec {5055 pname = "oildev-unstable";5156 version = "2021-07-14";···6661 It's not critical to drop most of these; the primary target is6762 the vendored fork of Python-2.7.13, which is ~ 55M and over 32006863 files, dozens of which get interpreter script patches in fixup.6464+6565+ Note: -f is necessary to keep it from being a pain to update6666+ hash on rev updates. Command will fail w/o and not print hash.6967 */7068 extraPostFetch = ''7169 rm -rf Python-2.7.13 benchmarks metrics py-yajl rfc gold web testdata services demo devtools cpp7270 '';7371 };74727575- # TODO: not sure why I'm having to set this for nix-build...7676- # can anyone tell if I'm doing something wrong?7777- SOURCE_DATE_EPOCH = 315532800;7878-7973 # patch to support a python package, pass tests on macOS, etc.8074 patchSrc = fetchFromGitHub {8175 owner = "abathur";8276 repo = "nix-py-dev-oil";8383- rev = "v0.8.12";8484- hash = "sha256-/EvwxL201lGsioL0lIhzM8VTghe6FuVbc3PBJgY8c8E=";7777+ rev = "v0.8.12.1";7878+ hash = "sha256-7JVnosdcvmVFN3h6SIeeqcJFcyFkai//fFuzi7ThNMY=";8579 };8680 patches = [8781 "${patchSrc}/0001-add_setup_py.patch"···106102 patchShebangs asdl build core doctools frontend native oil_lang107103 '';108104109109- # TODO: this may be obsolete?105105+ /*106106+ We did convince oil to upstream an env for specifying107107+ this to support a shell.nix. Would need a patch if they108108+ later drop this support. See:109109+ https://github.com/oilshell/oil/blob/46900310c7e4a07a6223eb6c08e4f26460aad285/doctools/cmark.py#L30-L34110110+ */110111 _NIX_SHELL_LIBCMARK = "${cmark}/lib/libcmark${stdenv.hostPlatform.extensions.sharedLibrary}";111112112113 # See earlier note on glibcLocales TODO: verify needed?