mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
31 lines
686 B
Nix
31 lines
686 B
Nix
{ lib, fetchFromGitLab, git, buildGoModule }:
|
|
let
|
|
data = lib.importJSON ../data.json;
|
|
in
|
|
buildGoModule rec {
|
|
pname = "gitlab-workhorse";
|
|
|
|
version = "15.6.2";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = data.owner;
|
|
repo = data.repo;
|
|
rev = data.rev;
|
|
sha256 = data.repo_hash;
|
|
};
|
|
|
|
sourceRoot = "source/workhorse";
|
|
|
|
vendorSha256 = "sha256-VqJqyRRFmDugq0VG7gPBxllikVNv5et93jJHleSTS7M=";
|
|
buildInputs = [ git ];
|
|
ldflags = [ "-X main.Version=${version}" ];
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.gitlab.com/";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ globin talyz yayayayaka ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|