3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
Lara d783dee256 gitlab: 14.6.3 -> 14.7.0
This also effectively reverts commit f007b794c7.
2022-01-25 19:05:49 +01:00

31 lines
682 B
Nix

{ lib, fetchFromGitLab, git, buildGoModule }:
let
data = lib.importJSON ../data.json;
in
buildGoModule rec {
pname = "gitlab-workhorse";
version = "14.7.0";
src = fetchFromGitLab {
owner = data.owner;
repo = data.repo;
rev = data.rev;
sha256 = data.repo_hash;
};
sourceRoot = "source/workhorse";
vendorSha256 = "sha256-ps/MjNY2woHrfcsNZTurnO2TbasWdS3LiuPUfVD2Ypc=";
buildInputs = [ git ];
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;
};
}