mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
gip: init at 0.7.1
Command-line tool to get global IP address https://github.com/dalance/gip
This commit is contained in:
42
pkgs/by-name/gi/gip/package.nix
Normal file
42
pkgs/by-name/gi/gip/package.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
openssl,
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "gip";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dalance";
|
||||
repo = "gip";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-UgvXaDNdH8ZN00oJ/DjIlBs86ua3JmVz1JfLk2XBVFw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-C38pV8c7znbBua130qDaguUAWamGhxfI8y0Vy0yadWc=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
# Tests that require network access
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Command-line tool to get global IP address";
|
||||
homepage = "https://github.com/dalance/gip";
|
||||
changelog = "https://github.com/dalance/gip/releases/tag/${finalAttrs.src.tag}";
|
||||
license = with lib.licenses; [
|
||||
mit
|
||||
asl20
|
||||
];
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "gip";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user