mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
Fix runtime error due missing import
|
|
|
|
Traceback (most recent call last):
|
|
File "/nix/store/4qqhr7g9ri3n7v6ik9ahlpvyp18wcn4p-git-repo-2.15.3/bin/.repo-wrapped", line 1339, in <module>
|
|
main(sys.argv[1:])
|
|
File "/nix/store/4qqhr7g9ri3n7v6ik9ahlpvyp18wcn4p-git-repo-2.15.3/bin/.repo-wrapped", line 1304, in main
|
|
_Init(args, gitc_init=(cmd == 'gitc-init'))
|
|
File "/nix/store/4qqhr7g9ri3n7v6ik9ahlpvyp18wcn4p-git-repo-2.15.3/bin/.repo-wrapped", line 607, in _Init
|
|
_Clone(url, dst, opt.clone_bundle, opt.quiet, opt.verbose)
|
|
File "/nix/store/4qqhr7g9ri3n7v6ik9ahlpvyp18wcn4p-git-repo-2.15.3/bin/.repo-wrapped", line 912, in _Clone
|
|
if clone_bundle and _DownloadBundle(url, cwd, quiet, verbose):
|
|
File "/nix/store/4qqhr7g9ri3n7v6ik9ahlpvyp18wcn4p-git-repo-2.15.3/bin/.repo-wrapped", line 860, in _DownloadBundle
|
|
r = urllib.request.urlopen(url, context=ssl.create_default_context())
|
|
NameError: name 'ssl' is not defined
|
|
builder for '/nix/store/4hvds8fv8xmzlm86yg9cf1lj6hrya7sg-amdvlk-src.drv' failed with exit code 1
|
|
|
|
diff --git a/repo b/repo
|
|
index 8b05def..f394b3e 100755
|
|
--- a/repo
|
|
+++ b/repo
|
|
@@ -236,8 +236,9 @@ import optparse
|
|
import re
|
|
import shutil
|
|
import stat
|
|
+import ssl
|
|
import urllib.error
|
|
import urllib.request
|
|
|
|
if sys.version_info[0] == 3:
|
|
import urllib.request
|