/ pkgs / geonet.nix
geonet.nix
 1  {
 2    lib,
 3    rustPlatform,
 4    fetchFromGitLab,
 5  }:
 6  
 7  rustPlatform.buildRustPackage rec {
 8    pname = "geonet-rs";
 9    version = "0.4.4";
10  
11    src = fetchFromGitLab {
12      owner = "shodan-public";
13      repo = "geonet-rs";
14      rev = "${version}";
15      hash = "sha256-lEvpRjSCkb7dE8XXUI4RqZcsB3zh6vr1jyK+K6PUjNA=";
16    };
17  
18    cargoHash = "sha256-o3Q9t/YSj6+S9obqOJXq9RCGdNfisUGoz/Lyej/n04I=";
19    doCheck = false;
20  
21    meta = with lib; {
22      description = "Network tools that run from multiple geographic locations using the GeoNet API";
23      longDescription = ''
24        Geographic network tools that provide:
25        - geodns: lookup DNS records for a hostname from multiple locations
26        - geoping: ping an IP/hostname from multiple locations around the world
27      '';
28      homepage = "https://gitlab.com/shodan-public/geonet-rs";
29      license = licenses.mit;
30      maintainers = [ ];
31      mainProgram = "geoping";
32    };
33  }