summary refs log blame commit diff
path: root/pkgs/tools/security/keybase/kbfs.nix
blob: 93c7bd540d8a0a90dc5c62434b982a4c394c3f1c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                                   
 
                








                                                                            






                                            


                                      

                                              




                                                               
{ stdenv, substituteAll, buildGoPackage, fetchFromGitHub, fuse, osxfuse, keybase }:

buildGoPackage {
  pname = "kbfs";

  inherit (keybase) src version;

  goPackagePath = "github.com/keybase/client";
  subPackages = [ "go/kbfs/kbfsfuse" "go/kbfs/kbfsgit/git-remote-keybase" ];

  dontRenameImports = true;

  patches = [
    (substituteAll {
      src = ./fix-paths-kbfs.patch;
      fusermount = "${fuse}/bin/fusermount";
    })
  ];

  buildFlags = [ "-tags production" ];

  meta = with stdenv.lib; {
    homepage = "https://keybase.io/docs/kbfs";
    description = "The Keybase filesystem";
    platforms = platforms.unix;
    maintainers = with maintainers; [ rvolosatovs bennofs np ];
    license = licenses.bsd3;
  };
}