Unverified Commit 1a5ed277 authored by Franz Pletz's avatar Franz Pletz
Browse files

mirrorbits: set and check package version

parent 73c3db4c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
{
  lib,
  versionCheckHook,
  buildGoModule,
  fetchFromGitHub,
  pkg-config,
@@ -36,8 +37,13 @@ buildGoModule (finalAttrs: {
  ldflags = [
    "-s"
    "-w"
    "-X github.com/etix/mirrorbits/core.VERSION=${finalAttrs.version}"
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "version";

  meta = {
    description = "Geographical download redirector for distributing files efficiently across a set of mirrors";
    homepage = "https://github.com/etix/mirrorbits";