mods: unbreak, modernize
There were two tests that required internet access, and so we just skip them. Also moved to `pkgs/by-name` and reformatted with `nixfmt-rfc-style`.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, gitUpdater
|
||||
, testers
|
||||
, mods
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
testers,
|
||||
mods,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -19,7 +20,14 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-BL5bxyeVkcm7GO1Kzk9d/hj2wY50UhauEFq9YQ/JbCE=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main.Version=${version}"
|
||||
];
|
||||
|
||||
# These tests require internet access.
|
||||
checkFlags = [ "-skip=^TestLoad/http_url$|^TestLoad/https_url$" ];
|
||||
|
||||
passthru = {
|
||||
updateScript = gitUpdater {
|
||||
@@ -1067,8 +1067,6 @@ with pkgs;
|
||||
|
||||
mod = callPackage ../development/tools/mod { };
|
||||
|
||||
mods = callPackage ../tools/misc/mods { };
|
||||
|
||||
mongosh = callPackage ../development/tools/mongosh { };
|
||||
|
||||
mya = callPackage ../applications/misc/mya { };
|
||||
|
||||
Reference in New Issue
Block a user