brig: remove with statements
This commit is contained in:
@@ -21,16 +21,16 @@ buildGoModule rec {
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
ldflags = [ "-s" "-w" ] ++ (with lib;
|
||||
mapAttrsToList (n: v: "-X github.com/sahib/brig/version.${n}=${v}")
|
||||
(with versions; {
|
||||
Major = major version;
|
||||
Minor = minor version;
|
||||
Patch = patch version;
|
||||
ldflags = [ "-s" "-w" ] ++
|
||||
lib.mapAttrsToList (n: v: "-X github.com/sahib/brig/version.${n}=${v}")
|
||||
{
|
||||
Major = lib.versions.major version;
|
||||
Minor = lib.versions.minor version;
|
||||
Patch = lib.versions.patch version;
|
||||
ReleaseType = "";
|
||||
BuildTime = "1970-01-01T00:00:00+0000";
|
||||
GitRev = src.rev;
|
||||
}));
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd brig \
|
||||
|
||||
Reference in New Issue
Block a user