mmdbctl: use native way to refer the mmdb path (#352356)

This commit is contained in:
Aleksana
2024-10-31 15:11:23 +08:00
committed by GitHub
+2 -2
View File
@@ -38,8 +38,8 @@ buildGoModule rec {
passthru.tests = {
simple = runCommand "${pname}-test" { } ''
${lib.getExe mmdbctl} verify ${dbip-country-lite}/share/dbip/dbip-country-lite.mmdb | grep valid
${lib.getExe mmdbctl} metadata ${dbip-country-lite}/share/dbip/dbip-country-lite.mmdb | grep DBIP-Country-Lite
${lib.getExe mmdbctl} verify ${dbip-country-lite.mmdb} | grep valid
${lib.getExe mmdbctl} metadata ${dbip-country-lite.mmdb} | grep DBIP-Country-Lite
touch $out
'';
};