Yureka d8e386b70d gitlab: 14.2.1 -> 14.2.3
(cherry picked from commit 6ede6d2740c0625531b58d69d5a80a06821c6635)
2021-09-03 14:33:07 +00:00

31 lines
720 B
Nix

{ lib, fetchFromGitLab, git, buildGoModule }:
let
data = (builtins.fromJSON (builtins.readFile ../data.json));
in
buildGoModule rec {
pname = "gitlab-workhorse";
version = "14.2.3";
src = fetchFromGitLab {
owner = data.owner;
repo = data.repo;
rev = data.rev;
sha256 = data.repo_hash;
};
sourceRoot = "source/workhorse";
vendorSha256 = "sha256-q0LuXmjoO6mjVZpMRVVGL862mA+MaCejTCx99Zi5VEI=";
buildInputs = [ git ];
buildFlagsArray = "-ldflags=-X main.Version=${version}";
doCheck = false;
meta = with lib; {
homepage = "http://www.gitlab.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz globin talyz ];
license = licenses.mit;
};
}