-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnu_plugin_strutils.nix
34 lines (31 loc) · 1021 Bytes
/
nu_plugin_strutils.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
{
stdenv,
lib,
rustPlatform,
fetchFromGitHub,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "nu_plugin_strutils";
version = "0.9.0-unstable-2025-02-10";
src = fetchFromGitHub {
owner = "fdncred";
repo = pname;
rev = "d2e29919841d3a796e51d6724b70213277754948";
sha256 = "sha256-xictRAkMnVEbNjEVO4w9XN0auHX5mcmnyFdlaFoVunA=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-4r5TH3t61TjWMoKuzStuUQM779IpD1t4K98OuOQ2L8M=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [rustPlatform.bindgenHook];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.CoreFoundation
];
meta = with lib; {
description = "Nushell plugin that implements some string utilities that are not included in nushell.";
mainProgram = "nu_plugin_strutils";
homepage = "https://github.com/fdncred/nu_plugin_strutils";
license = licenses.mit;
platforms = with platforms; all;
};
}