summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorMarc Seeger <mseeger@fb.com>2020-12-28 08:09:57 -0800
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-12-29 09:34:54 -0800
commit1d83fc2aacd352836e2f4539a97089571b54f3b8 (patch)
tree85c09c6e28c4c48bb213d9b3b003f4ebf148ee37 /pkgs/shells
parent7e143f77a72a06d2b0d9d750276de543219cf373 (diff)
downloadnixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.tar
nixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.tar.gz
nixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.tar.bz2
nixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.tar.lz
nixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.tar.xz
nixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.tar.zst
nixpkgs-1d83fc2aacd352836e2f4539a97089571b54f3b8.zip
bash-completion: fix build on darwin (#107768)
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/bash/bash-completion/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/shells/bash/bash-completion/default.nix b/pkgs/shells/bash/bash-completion/default.nix
index 5fda5704812..4599b0a2283 100644
--- a/pkgs/shells/bash/bash-completion/default.nix
+++ b/pkgs/shells/bash/bash-completion/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub
+{ stdenv, fetchurl
 , fetchpatch
 , autoreconfHook
 , perl
@@ -11,11 +11,13 @@ stdenv.mkDerivation rec {
   pname = "bash-completion";
   version = "2.11";
 
-  src = fetchFromGitHub {
-    owner = "scop";
-    repo = "bash-completion";
-    rev = version;
-    sha256 = "0m3brd5jx7w07h8vxvvcmbyrlnadrx6hra3cvx6grzv6rin89liv";
+  # Using fetchurl because fetchGithub or fetchzip will have trouble on
+  # e.g. APFS filesystems (macOS) because of non UTF-8 characters in some of the
+  # test fixtures that are part of the repository.
+  # See discussion in https://github.com/NixOS/nixpkgs/issues/107768
+  src = fetchurl {
+    url = "https://github.com/scop/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
+    sha256 = "1b0iz7da1sgifx1a5wdyx1kxbzys53v0kyk8nhxfipllmm5qka3k";
   };
 
   nativeBuildInputs = [ autoreconfHook ];