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:
Leah Amelia Chen
2024-05-22 19:14:22 +02:00
parent 4e0a31f582
commit caf25eb523
2 changed files with 15 additions and 9 deletions
@@ -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 {
-2
View File
@@ -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 { };