f466c9f961
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
33 lines
1,010 B
Nix
33 lines
1,010 B
Nix
{ stdenv, lib, buildGoPackage, fetchurl, cf-private
|
|
, AVFoundation, AudioToolbox, ImageIO, CoreMedia
|
|
, Foundation, CoreGraphics, MediaToolbox
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
name = "keybase-${version}";
|
|
version = "2.13.1";
|
|
|
|
goPackagePath = "github.com/keybase/client";
|
|
subPackages = [ "go/keybase" ];
|
|
|
|
dontRenameImports = true;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/keybase/client/archive/v${version}.tar.gz";
|
|
sha256 = "0avq87y7cs3jipl444ssz1zd5jygpks20hls0fkqxxaikkpdsy4v";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox
|
|
# Needed for OBJC_CLASS_$_NSData symbols.
|
|
cf-private
|
|
];
|
|
buildFlags = [ "-tags production" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.keybase.io/;
|
|
description = "The Keybase official command-line utility and service.";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ carlsverre np rvolosatovs ];
|
|
};
|
|
}
|