about summary refs log tree commit diff
path: root/pkgs/tools/security/keybase
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2019-01-20 15:55:48 -0800
committerWael Nasreddine <wael.nasreddine@gmail.com>2019-01-20 16:59:41 -0800
commitf466c9f9610d7d3d7659b9c994d118bb7ad2e154 (patch)
tree3da3c7303f69009f71beeda9f421ad6e24921c8e /pkgs/tools/security/keybase
parent66d844ba598f7abededf2f91d2f6c43696280663 (diff)
downloadnixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.tar
nixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.tar.gz
nixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.tar.bz2
nixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.tar.lz
nixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.tar.xz
nixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.tar.zst
nixlib-f466c9f9610d7d3d7659b9c994d118bb7ad2e154.zip
keybase: switch to fetchurl for sha256 consistency on Darwin
fetchFromGitHub and thus fetchzip hashes the contents of the archive and
not the archive itself. Unicode file names lead to different checksums
on HFS+ vs. other file systems because of Unicode normalisation
Diffstat (limited to 'pkgs/tools/security/keybase')
-rw-r--r--pkgs/tools/security/keybase/default.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/tools/security/keybase/default.nix b/pkgs/tools/security/keybase/default.nix
index a8191d15fadd..ae726544453a 100644
--- a/pkgs/tools/security/keybase/default.nix
+++ b/pkgs/tools/security/keybase/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, buildGoPackage, fetchFromGitHub, cf-private
+{ stdenv, lib, buildGoPackage, fetchurl, cf-private
 , AVFoundation, AudioToolbox, ImageIO, CoreMedia
 , Foundation, CoreGraphics, MediaToolbox
 }:
@@ -12,11 +12,9 @@ buildGoPackage rec {
 
   dontRenameImports = true;
 
-  src = fetchFromGitHub {
-    owner  = "keybase";
-    repo   = "client";
-    rev    = "v${version}";
-    sha256 = "13mkbr99k3i03vp28ab5y0h5fa1pfnbfjqq2fhh4j87d5h74ld13";
+  src = fetchurl {
+    url = "https://github.com/keybase/client/archive/v${version}.tar.gz";
+    sha256 = "0avq87y7cs3jipl444ssz1zd5jygpks20hls0fkqxxaikkpdsy4v";
   };
 
   buildInputs = lib.optionals stdenv.isDarwin [