diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2021-06-03 11:24:19 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 16:24:19 +0200 |
commit | 8f166b95c9ee10743039d1f2b1c21f9edee5da88 (patch) | |
tree | b1c4b4be391963ede14057f4717a3b02a8c750b0 /pkgs/applications/version-management/git-repo/default.nix | |
parent | e6e137c197507282fa6ce90da6753181e55c0290 (diff) | |
download | nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.tar nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.tar.gz nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.tar.bz2 nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.tar.lz nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.tar.xz nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.tar.zst nixpkgs-8f166b95c9ee10743039d1f2b1c21f9edee5da88.zip |
gitRepo: Add import to ssl module to avoid runtime error (#125373)
Co-authored-by: Ricardo M. Correia <rcorreia@wizy.org>
Diffstat (limited to 'pkgs/applications/version-management/git-repo/default.nix')
-rw-r--r-- | pkgs/applications/version-management/git-repo/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/version-management/git-repo/default.nix b/pkgs/applications/version-management/git-repo/default.nix index 7b29e466160..75a9fe37764 100644 --- a/pkgs/applications/version-management/git-repo/default.nix +++ b/pkgs/applications/version-management/git-repo/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, makeWrapper, nix-update-script -, python3, git, gnupg, less +, python3, git, gnupg, less, openssh }: stdenv.mkDerivation rec { @@ -10,9 +10,12 @@ stdenv.mkDerivation rec { owner = "android"; repo = "tools_repo"; rev = "v${version}"; - sha256 = "sha256-3FSkWpHda1jVhy/633B+ippWcbKd83IlQcJYS9Qx5wQ="; + sha256 = "sha256-SuHp6C5ueUErvRiWDQNEmCybFIa7Iu7C/FtnHys9XqU="; }; + # Fix 'NameError: name 'ssl' is not defined' + patches = [ ./import-ssl-module.patch ]; + nativeBuildInputs = [ makeWrapper ]; buildInputs = [ python3 ]; @@ -34,7 +37,7 @@ stdenv.mkDerivation rec { # Important runtime dependencies postFixup = '' wrapProgram $out/bin/repo --prefix PATH ":" \ - "${lib.makeBinPath [ git gnupg less ]}" + "${lib.makeBinPath [ git gnupg less openssh ]}" ''; passthru = { |