1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-07 18:18:01 +09:00

nushellPlugins.hcl: init at 0.104.1 (#414407)

This commit is contained in:
Arne Keller 2025-06-06 22:59:47 +02:00 committed by GitHub
commit b4656359c0
Signed by: github
GPG key ID: B5690EEEBB952194
3 changed files with 42 additions and 0 deletions

View file

@ -27252,6 +27252,11 @@
githubId = 4113027;
name = "Jesper Geertsen Jonsson";
};
yethal = {
github = "yethal";
githubId = 26117918;
name = "Yethal";
};
yinfeng = {
email = "lin.yinfeng@outlook.com";
github = "linyinfeng";

View file

@ -22,6 +22,7 @@ lib.makeScope newScope (
};
skim = callPackage ./skim.nix { };
semver = callPackage ./semver.nix { };
hcl = callPackage ./hcl.nix { };
}
// lib.optionalAttrs config.allowAliases {
regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release.";

View file

@ -0,0 +1,36 @@
{
stdenv,
lib,
rustPlatform,
pkg-config,
nix-update-script,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_hcl";
version = "0.104.1";
src = fetchFromGitHub {
repo = "nu_plugin_hcl";
owner = "Yethal";
tag = version;
hash = "sha256-AGTrSLVzbnzMQ2oUuD8Lq4phRt404lSRPiU8Oh9KBG0=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-5bxE+wN3uAbJSIh0wFS/KA5iTyFiSvFWmj14S/Fmkec=";
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
cargoBuildFlags = [ "--package nu_plugin_hcl" ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Nushell plugin for parsing Hashicorp Configuration Language files";
mainProgram = "nu_plugin_hcl";
homepage = "https://github.com/Yethal/nu_plugin_hcl";
license = licenses.mit;
maintainers = with maintainers; [ yethal ];
platforms = with platforms; all;
};
}