···4646 nativeBuildInputs = [ git ];
4747 };
48484949+ /*
5050+ Upstream isn't interested in packaging this as a library
5151+ (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";
···6166 It's not critical to drop most of these; the primary target is
6267 the vendored fork of Python-2.7.13, which is ~ 55M and over 3200
6368 files, dozens of which get interpreter script patches in fixup.
6969+7070+ Note: -f is necessary to keep it from being a pain to update
7171+ hash on rev updates. Command will fail w/o and not print hash.
6472 */
6573 extraPostFetch = ''
6674 rm -rf Python-2.7.13 benchmarks metrics py-yajl rfc gold web testdata services demo devtools cpp
6775 '';
6876 };
6969-7070- # TODO: not sure why I'm having to set this for nix-build...
7171- # can anyone tell if I'm doing something wrong?
7272- SOURCE_DATE_EPOCH = 315532800;
73777478 # patch to support a python package, pass tests on macOS, etc.
7579 patchSrc = fetchFromGitHub {
7680 owner = "abathur";
7781 repo = "nix-py-dev-oil";
7878- rev = "v0.8.12";
7979- hash = "sha256-/EvwxL201lGsioL0lIhzM8VTghe6FuVbc3PBJgY8c8E=";
8282+ rev = "v0.8.12.1";
8383+ hash = "sha256-7JVnosdcvmVFN3h6SIeeqcJFcyFkai//fFuzi7ThNMY=";
8084 };
8185 patches = [
8286 "${patchSrc}/0001-add_setup_py.patch"
···102106 patchShebangs asdl build core doctools frontend native oil_lang
103107 '';
104108105105- # TODO: this may be obsolete?
109109+ /*
110110+ We did convince oil to upstream an env for specifying
111111+ this to support a shell.nix. Would need a patch if they
112112+ later drop this support. See:
113113+ https://github.com/oilshell/oil/blob/46900310c7e4a07a6223eb6c08e4f26460aad285/doctools/cmark.py#L30-L34
114114+ */
106115 _NIX_SHELL_LIBCMARK = "${cmark}/lib/libcmark${stdenv.hostPlatform.extensions.sharedLibrary}";
107116108117 # See earlier note on glibcLocales TODO: verify needed?