feat: +njalla module

This commit is contained in:
2026-07-13 23:37:14 +00:00
parent 7e8c6884db
commit ef7d1b29f4
12 changed files with 2825 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
{ lib, pkgs, ... }: let
src = ./.;
in
pkgs.rustPlatform.buildRustPackage {
pname = "which-country-rs";
version = "1.0.0";
inherit src;
cargoLock.lockFile = ./Cargo.lock;
# NOTE(yukkop): upstream uses edition 2024, so do not pass the repo's
# Rust 1.81 commonArgs here.
# NOTE(yukkop): keep the Nix package offline-by-default; upstream's
# default geoip feature calls a plaintext HTTP endpoint.
cargoBuildFlags = ["--no-default-features"];
cargoTestFlags = ["--no-default-features"];
meta = {
description = "CLI tool that tells you which country contains coordinates";
homepage = "https://github.com/krisfur/which-country-rs";
license = lib.licenses.mit;
mainProgram = "which-country-rs";
};
}