lol

keybase, keybase-gui, kbfs: 4.6.0 -> 4.7.2, added dependencies

all: update from 4.6.0 to 4.7.2

keybase:
- added gnupg as a dependency and patch fix-patch-keybase.patch

kbfs:
- added fuse as a dependency and patch fix-patch-kbfs.patch

authored by

Vadim-Valdis Yudaev and committed by
worldofpeace
3894ec0a 59edabf8

+88 -8
+13 -4
pkgs/tools/security/keybase/default.nix
··· 1 - { stdenv, lib, buildGoPackage, fetchFromGitHub 1 + { stdenv, substituteAll, lib, buildGoPackage, fetchFromGitHub 2 2 , AVFoundation, AudioToolbox, ImageIO, CoreMedia 3 3 , Foundation, CoreGraphics, MediaToolbox 4 + , gnupg 4 5 }: 5 6 6 7 buildGoPackage rec { 7 8 pname = "keybase"; 8 - version = "4.6.0"; 9 + version = "4.7.2"; 9 10 10 11 goPackagePath = "github.com/keybase/client"; 11 12 subPackages = [ "go/keybase" ]; ··· 16 17 owner = "keybase"; 17 18 repo = "client"; 18 19 rev = "v${version}"; 19 - sha256 = "1aqj5s3vfji1zl7xdzphnsw3b8pnbg22n9rzdxkcdjf7via5wz2k"; 20 + sha256 = "1ixfq9qv71misg04fvf4892z956w5aydq0r1wk6qk5jjqp6gf4lv"; 20 21 }; 21 22 22 - buildInputs = lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ]; 23 + patches = [ 24 + (substituteAll { 25 + src = ./fix-paths-keybase.patch; 26 + gpg = "${gnupg}/bin/gpg"; 27 + gpg2 = "${gnupg}/bin/gpg2"; 28 + }) 29 + ]; 30 + 31 + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AVFoundation AudioToolbox ImageIO CoreMedia Foundation CoreGraphics MediaToolbox ]; 23 32 buildFlags = [ "-tags production" ]; 24 33 25 34 meta = with stdenv.lib; {
+48
pkgs/tools/security/keybase/fix-paths-kbfs.patch
··· 1 + diff --git a/go/kbfs/libfuse/mounter.go b/go/kbfs/libfuse/mounter.go 2 + index d791ffc2..b116ad5d 100644 3 + --- a/go/kbfs/libfuse/mounter.go 4 + +++ b/go/kbfs/libfuse/mounter.go 5 + @@ -108,7 +108,7 @@ func (m *mounter) Unmount() (err error) { 6 + case "darwin": 7 + _, err = exec.Command("/sbin/umount", dir).Output() 8 + case "linux": 9 + - fusermountOutput, fusermountErr := exec.Command("fusermount", "-u", dir).CombinedOutput() 10 + + fusermountOutput, fusermountErr := exec.Command("@fusermount@", "-u", dir).CombinedOutput() 11 + // Only clean up mountdir on a clean unmount. 12 + if fusermountErr == nil { 13 + m.log.Info("Successfully unmounted") 14 + @@ -135,7 +135,7 @@ func (m *mounter) Unmount() (err error) { 15 + "/usr/sbin/diskutil", "unmountDisk", "force", dir).Output() 16 + case "linux": 17 + // Lazy unmount; will unmount when KBFS is no longer in use. 18 + - _, err = exec.Command("fusermount", "-u", "-z", dir).Output() 19 + + _, err = exec.Command("@fusermount@", "-u", "-z", dir).Output() 20 + default: 21 + err = errors.New("Forced unmount is not supported on this platform yet") 22 + } 23 + diff --git a/go/vendor/bazil.org/fuse/mount_linux.go b/go/vendor/bazil.org/fuse/mount_linux.go 24 + index ec7fd89c..4d0a9e30 100644 25 + --- a/go/vendor/bazil.org/fuse/mount_linux.go 26 + +++ b/go/vendor/bazil.org/fuse/mount_linux.go 27 + @@ -196,7 +196,7 @@ func mount(dir string, conf *mountConfig, ready chan<- struct{}, _ *error) (fuse 28 + defer readFile.Close() 29 + 30 + cmd := exec.Command( 31 + - "fusermount", 32 + + "@fusermount@", 33 + "-o", conf.getOptions(), 34 + "--", 35 + dir, 36 + diff --git a/go/vendor/bazil.org/fuse/unmount_linux.go b/go/vendor/bazil.org/fuse/unmount_linux.go 37 + index f02448af..6e4c6c23 100644 38 + --- a/go/vendor/bazil.org/fuse/unmount_linux.go 39 + +++ b/go/vendor/bazil.org/fuse/unmount_linux.go 40 + @@ -21,7 +21,7 @@ func unmount(dir string) error { 41 + return sysunix.Unmount(dir, sysunix.MNT_DETACH) 42 + } 43 + 44 + - cmd := exec.Command("fusermount", "-u", dir) 45 + + cmd := exec.Command("@fusermount@", "-u", dir) 46 + output, err := cmd.CombinedOutput() 47 + if err != nil { 48 + if len(output) > 0 {
+16
pkgs/tools/security/keybase/fix-paths-keybase.patch
··· 1 + diff --git a/go/libkb/gpg_cli.go b/go/libkb/gpg_cli.go 2 + index 3c7c6257..ae8f7e2f 100644 3 + --- a/go/libkb/gpg_cli.go 4 + +++ b/go/libkb/gpg_cli.go 5 + @@ -54,9 +54,9 @@ func (g *GpgCLI) Configure(mctx MetaContext) (err error) { 6 + if len(prog) > 0 { 7 + err = canExec(prog) 8 + } else { 9 + - prog, err = exec.LookPath("gpg2") 10 + + prog, err = exec.LookPath("@gpg2@") 11 + if err != nil { 12 + - prog, err = exec.LookPath("gpg") 13 + + prog, err = exec.LookPath("@gpg@") 14 + } 15 + } 16 + if err != nil {
+3 -3
pkgs/tools/security/keybase/gui.nix
··· 4 4 , runtimeShell, gsettings-desktop-schemas }: 5 5 6 6 let 7 - versionSuffix = "20191010154240.134c2d892b"; 7 + versionSuffix = "20191028173732.6fc2e969b4"; 8 8 in 9 9 10 10 stdenv.mkDerivation rec { 11 11 pname = "keybase-gui"; 12 - version = "4.6.0"; # Find latest version from https://prerelease.keybase.io/deb/dists/stable/main/binary-amd64/Packages 12 + version = "4.7.2"; # Find latest version from https://prerelease.keybase.io/deb/dists/stable/main/binary-amd64/Packages 13 13 14 14 src = fetchurl { 15 15 url = "https://s3.amazonaws.com/prerelease.keybase.io/linux_binaries/deb/keybase_${version + "-" + versionSuffix}_amd64.deb"; 16 - sha256 = "a25f0c676c00d306859d32e4dad7a23dd4955fa0b352be50c281081f2cf000ae"; 16 + sha256 = "01slhdxcjs1543rz1khxhzn25g26vm9fd9mcyd5ahp2v4g37b8sd"; 17 17 }; 18 18 19 19 nativeBuildInputs = [
+8 -1
pkgs/tools/security/keybase/kbfs.nix
··· 1 - { stdenv, buildGoPackage, fetchFromGitHub, keybase }: 1 + { stdenv, substituteAll, buildGoPackage, fetchFromGitHub, fuse, osxfuse, keybase }: 2 2 3 3 buildGoPackage { 4 4 pname = "kbfs"; ··· 9 9 subPackages = [ "go/kbfs/kbfsfuse" "go/kbfs/kbfsgit/git-remote-keybase" ]; 10 10 11 11 dontRenameImports = true; 12 + 13 + patches = [ 14 + (substituteAll { 15 + src = ./fix-paths-kbfs.patch; 16 + fusermount = "${fuse}/bin/fusermount"; 17 + }) 18 + ]; 12 19 13 20 buildFlags = [ "-tags production" ]; 14 21