2022-06-14 22:17:15 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
2022-06-16 01:21:24 +03:00
|
|
|
let
|
|
|
|
vp = "github.com/sahib/brig/version";
|
|
|
|
version = {
|
|
|
|
major = "0";
|
|
|
|
minor = "5";
|
|
|
|
patch = "3";
|
|
|
|
releaseType = "develop";
|
|
|
|
gitRev = "6b7eccf8fcbd907fc759f8ca8aa814df8499e2ed";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
buildGoModule {
|
2022-06-14 22:17:15 +03:00
|
|
|
pname = "brig";
|
|
|
|
version = "0.5.3pre";
|
|
|
|
|
|
|
|
subPackages = ["."];
|
|
|
|
patches = [
|
|
|
|
./default-repo-location.patch
|
2022-06-17 23:27:15 +03:00
|
|
|
./fix-ghost-remove.patch
|
|
|
|
./fix-replay-remove-already-gone.patch
|
2022-06-16 01:21:24 +03:00
|
|
|
./info-no-check-cached.patch
|
|
|
|
./ls-no-check-cached.patch
|
2022-06-14 22:17:15 +03:00
|
|
|
./pin-ls-recursive.patch
|
2022-06-16 01:21:24 +03:00
|
|
|
./repin-relaxed-locking.patch
|
2022-06-17 23:27:15 +03:00
|
|
|
./vcs-mapper-debug-to-logger.patch
|
2022-06-14 22:17:15 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sahib";
|
|
|
|
repo = "brig";
|
2022-06-16 01:21:24 +03:00
|
|
|
rev = version.gitRev;
|
2022-06-14 22:17:15 +03:00
|
|
|
sha256 = "sha256-lCXSeTIZcIcVcblm9BTUMqTfxO7+BHYQNv6/RlPq14A=";
|
|
|
|
};
|
|
|
|
vendorSha256 = "sha256-pFrrMq7VFCwt8KRgJApCq8lPYv0P8hIUOxKJMN9QR0U=";
|
2022-06-16 01:21:24 +03:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
2022-06-14 22:17:15 +03:00
|
|
|
}
|