mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
mirrorbits: set and check package version
This commit is contained in:
parent
73c3db4c42
commit
1a5ed277c2
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue