nixpkgs/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix

31 lines
682 B
Nix
Raw Normal View History

{ lib, fetchFromGitLab, git, buildGoModule }:
2021-04-07 14:52:15 +00:00
let
data = lib.importJSON ../data.json;
2021-04-07 14:52:15 +00:00
in
2020-11-26 12:41:37 +00:00
buildGoModule rec {
pname = "gitlab-workhorse";
version = "14.5.2";
2018-09-21 07:31:30 +00:00
src = fetchFromGitLab {
2021-04-07 14:52:15 +00:00
owner = data.owner;
repo = data.repo;
rev = data.rev;
sha256 = data.repo_hash;
};
2021-04-07 14:52:15 +00:00
sourceRoot = "source/workhorse";
2021-10-25 08:35:38 +00:00
vendorSha256 = "sha256-yLZY9FFUS4nJl4TkE6MwICCEwtPTXFc5zuj4FgiIy74=";
buildInputs = [ git ];
2021-08-26 06:45:51 +00:00
ldflags = [ "-X main.Version=${version}" ];
2020-11-26 12:41:37 +00:00
doCheck = false;
meta = with lib; {
homepage = "http://www.gitlab.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz globin talyz ];
2016-09-27 13:49:21 +00:00
license = licenses.mit;
};
}