{ lib, buildGoModule, fetchFromGitHub }: let vp = "github.com/sahib/brig/version"; version = { major = "0"; minor = "5"; patch = "3"; releaseType = "develop"; gitRev = "6b7eccf8fcbd907fc759f8ca8aa814df8499e2ed"; }; in buildGoModule { pname = "brig"; version = "0.5.3pre"; subPackages = ["."]; patches = [ ./default-repo-location.patch ./fix-ghost-remove.patch ./fix-replay-remove-already-gone.patch ./info-no-check-cached.patch ./ls-no-check-cached.patch ./pin-ls-recursive.patch ./repin-relaxed-locking.patch ./vcs-mapper-debug-to-logger.patch ]; src = fetchFromGitHub { owner = "sahib"; repo = "brig"; rev = version.gitRev; sha256 = "sha256-lCXSeTIZcIcVcblm9BTUMqTfxO7+BHYQNv6/RlPq14A="; }; vendorSha256 = "sha256-pFrrMq7VFCwt8KRgJApCq8lPYv0P8hIUOxKJMN9QR0U="; ldflags = with version; [ "-s" "-w" "-X ${vp}.Major=${major}" "-X ${vp}.Minor=${minor}" "-X ${vp}.Patch=${patch}" "-X ${vp}.GitRev=${gitRev}" "-X ${vp}.ReleaseType=${releaseType}" "-X ${vp}.BuildTime=1970-01-01T01:00:01+01:00" ]; }