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
3 changed files with 42 additions and 0 deletions
+5
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";
+1
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.";
+36
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;
};
}