11 src = fetchFromGitHub {
15 sha256 = "0gi39jmnzqrgj146yw8lcmgmvzx7ii1dgw4iqig7kx8c0jiqi600";
20 nativeBuildInputs = [ installShellFiles ];
22 subPackages = [ "." ];
24 ldflags = [ "-s" "-w" ] ++ (with lib;
25 mapAttrsToList (n: v: "-X github.com/sahib/brig/version.${n}=${v}")
27 Major = major version;
28 Minor = minor version;
29 Patch = patch version;
31 BuildTime = "1970-01-01T00:00:00+0000";
36 installShellCompletion --cmd brig \
37 --bash $src/autocomplete/bash_autocomplete \
38 --zsh $src/autocomplete/zsh_autocomplete
41 # There are no tests for the brig executable.
45 description = "File synchronization on top of IPFS with a git-like interface and a FUSE filesystem";
47 brig is a distributed and secure file synchronization tool with a version
48 control system. It is based on IPFS, written in Go and will feel familiar
49 to git users. Think of it as a swiss army knife for file synchronization
50 or as a peer to peer alternative to Dropbox.
52 homepage = "https://brig.readthedocs.io";
53 changelog = "https://github.com/sahib/brig/releases/tag/${src.rev}";
54 license = licenses.agpl3Only;
55 maintainers = with maintainers; [ offline ];