-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnu_plugin_dns.nix
35 lines (32 loc) · 991 Bytes
/
nu_plugin_dns.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
stdenv,
lib,
rustPlatform,
fetchFromGitHub,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "nu_plugin_dns";
version = "3.0.6-unstable-2024-12-09";
src = fetchFromGitHub {
owner = "dead10ck";
repo = pname;
rev = "0453d9adbbadc00e4ff22261cf464d10ea4a4ccc";
sha256 = "sha256-a1EQV/UX4+gB14jHMReLFbOmabZ5r40FgaHO+60IPME=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-5DBMej3NWYRTkoDs1a5qoydnhDW0TKBYanuMXeMSs5o=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "A DNS utility for nushell.";
mainProgram = "nu_plugin_dns";
homepage = "https://github.com/dead10ck/nu_plugin_dns";
license = licenses.mpl20;
platforms = with platforms; all;
};
}