mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +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,
|
lib,
|
||||||
|
versionCheckHook,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
@ -36,8 +37,13 @@ buildGoModule (finalAttrs: {
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
|
"-X github.com/etix/mirrorbits/core.VERSION=${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
versionCheckProgramArg = "version";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Geographical download redirector for distributing files efficiently across a set of mirrors";
|
description = "Geographical download redirector for distributing files efficiently across a set of mirrors";
|
||||||
homepage = "https://github.com/etix/mirrorbits";
|
homepage = "https://github.com/etix/mirrorbits";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue