nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 writableTmpDirAsHomeHook,
6 nix-update-script,
7}:
8
9buildGoModule (finalAttrs: {
10 pname = "vfox";
11 version = "1.0.4";
12
13 src = fetchFromGitHub {
14 owner = "version-fox";
15 repo = "vfox";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-42uaGW+qo9YC7FIpucWna+RwKhIsObFGYQja1fcArQo=";
18 };
19
20 vendorHash = "sha256-+swC2G8g0rrANsUM8jXad+38QX0yWIf+2boyAv7+hG8=";
21
22 __darwinAllowLocalNetworking = true;
23
24 nativeCheckInputs = [ writableTmpDirAsHomeHook ];
25
26 checkFlags =
27 let
28 skippedTests = [
29 # need network
30 "TestGetRequest"
31 "TestHeadRequest"
32 "TestDownloadFile"
33 ];
34 in
35 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
36
37 preCheck = ''
38 export CI=1
39 '';
40
41 passthru.updateScript = nix-update-script { };
42
43 meta = {
44 description = "Extendable version manager";
45 homepage = "https://github.com/version-fox/vfox";
46 changelog = "https://github.com/version-fox/vfox/releases/tag/v${finalAttrs.version}";
47 mainProgram = "vfox";
48 license = lib.licenses.asl20;
49 maintainers = [ ];
50 };
51})